ACC: Type Mismatch Specifying Criteria on Count in QueryLast reviewed: May 7, 1997Article ID: Q151867 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. When you specify text criteria for a Text field with Count in the Total row of a totals query, you may receive the following error message:
Type Mismatch CAUSEThe Text criteria is being compared to the result of the Count which is numeric.
RESOLUTIONYou can use one of the following two methods to work around this behavior. These two methods assume that the criteria is meant to limit the records before the Count is performed by the query.
Method 1You can add the field to the query a second time and use Where on the Total row. The following example uses the sample database Northwind.mdb (or NWIND.MDB in version 2.0) to demonstrate adding a field to a totals query twice.
Method 2Use two queries. The following example demonstrates how to build a totals query based on a select query with a Text criteria:
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor more information about using the Count() function in queries, search the Help Index for "Count," and view the available topics, or ask the Microsoft Access 97 Office Assistant. |
Keywords : kberrmsg kbusage QryTotal
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |