ACC1x: Group Footer Controls Calculate Twice at Page BreakID: Q104980
|
A group footer control that references a calculated detail control returns incorrect results if the page break and group break occur at the same time. The group footer control is off by the value of the last detail record.
Reference to a control with the RunningSum property applied from a higher-level group footer causes the control's value to be added again for the last cached running sum and to return incorrect data. All cached field values are validated when you advance the page; this occurs before the record is advanced, determining the end of the group. Thus, the last record in a group is added twice.
From the OnPrint event of the Detail section, call a macro that uses
the SetValue action to place the detail control's value in an unbound
group footer control.
The Detail section has the following OnPrint properties and control:
OnPrint: Macro1
ControlName: DetailTotal
RunningSum: OverGroup
ControlName: FooterTotal
ControlSource: <blank>
SetValue
Item=[FooterTotal]
Expression=[DetailTotal]
Microsoft has confirmed this to be a problem in Microsoft Access versions 1.0 and 1.1. This problem no longer occurs in Microsoft Access version 2.0.
Microsoft Access "User's Guide," version 1.0, page 568
Keywords : kbusage RptTotal
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: March 27, 1999