The information in this article applies to:
SYMPTOMS
Novice: Requires knowledge of the user interface on single-user computers.
RESOLUTIONIn Microsoft Access 7.0 and 97In Microsoft Access 7.0 and 97, you can use the NZ() function as well as the suggestions below to return another specified value when a variant is Null; therefore the count is of all records.The new SQL statement with the NZ() function would read: SELECT Column2, In Microsoft Access 1.x and 2.0To count Null values, count on a primary key column, a column that contains unique values, a counter column, a dummy column where all records equal 1, or use Count(*) in the field to count all rows regardless of whether an individual field has Null values.The new SQL statement would read: SELECT Column2, STATUSThis behavior is by design with all aggregate (totals) functions. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor more information about counts in queries, search the Help Index for "Count Function," and then view the available topics, or ask the Microsoft Access 97 Office Assistant.
Keywords : kbusage QryOthr |
Last Reviewed: March 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |