ACC2: RunningSum Text Box in Report Not Accumulating ValuesLast reviewed: May 14, 1997Article ID: Q115877 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. 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.
RESOLUTIONChange 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.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 2.0. This problem no longer occurs in Microsoft Access version 7.0.
MORE INFORMATIONThis 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.
REFERENCESFor more information about the RunningSum property, search for "RunningSum," and then "RunningSum Property" using the Microsoft Access Help menu.
|
Additional query words: reports
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |