ACC: Incorrect Results Received with DSum() FunctionLast reviewed: May 28, 1997Article ID: Q97000 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you run a DSum() function, you receive incorrect results.
CAUSEThe DSum() function returns a set of values in a specified set of records (domain). Typically, you use this function in a text box control on a report to total the values from a field in a table or query. If you omit the surrounding quotation marks from the expression argument, you don't see the expected error message. Instead, you see a value that is derived by taking the last value of the field from the report and summing it x number of times (once for each record in the table or query).
RESOLUTIONSurround each argument in the Dsum() function with quotation marks.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorThe following example is based on the sample database Northwind.mdb (or NWIND.MDB in version 1.x or 2.0)
REFERENCESFor more information about the Dsum() function, search the Help Index for "Dsum."
|
Additional query words: expressions
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |