ACC2000: Incorrect Results Received with DSum() FunctionID: Q209605
|
When you run a DSum() function, you receive incorrect results.
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).
Surround each argument in the DSum() function with quotation marks.
Text Box:
Name: Incorrect
ControlSource: =DSum([Freight],"Orders")
Text Box
Name: Correct
ControlSource: =DSum("[Freight]","Orders")
Text Box
Name: FreightField
ControlSource: =[Freight]
For 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.
Additional query words: prb expressions wrong
Keywords : kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 21, 1999