Article ID: 115877 - Last Review: June 25, 2002 - Revision: 1.0 ACC2: RunningSum Text Box in Report Not Accumulating ValuesThis article was previously published under Q115877 Novice: Requires knowledge of the user interface on single-user computers.
On This PageSYMPTOMS
When a text box in a report that uses the RunningSum property is based on
another control in the report, it does not accumulate the running sum.
Instead, it reflects only the value of the control it references.
RESOLUTION
Change the reference to use the Val() function to convert the data type
from Variant to Number, or reference a field from the underlying table or
query.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access 2.0. This
problem no longer occurs in Microsoft Access version 7.0.
MORE INFORMATION
This problem is usually encountered in databases that have been converted
from version 1.x to 2.0.
Steps to Reproduce Problem
To correct this problem for fields in the underlying record set, set the Field2 text box's ControlSource property to =[Unit Price] or use the Val() function as in the following example: =Val([Field0]) Note that this does not correct the problem for expression fields such as DLookup() and Sum(). You can also try placing the expression in the underlying query or incrementing a global variable using Access Basic. REFERENCES
For more information about the RunningSum property, search for
"RunningSum," and then "RunningSum Property" using the Microsoft Access
Help menu.
| Article Translations
|

Back to the top
