ACC2000: Incorrect Results Received with DSum() Function (209605)
The information in this article applies to:
This article was previously published under Q209605 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
When you run a DSum() function, you receive incorrect results.
CAUSE
The 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 do not receive an 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).
RESOLUTION
Surround each argument in the DSum() function with quotation marks.
REFERENCESFor more information about the DSum() function, click Microsoft Access Help on the Help menu, type DSum function in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 12/12/2002 |
---|
Keywords: | kbdta kbprb KB209605 |
---|
|