Calculated Controls on a Report

bkessinger
StarLounger
Posts: 71
Joined: 27 Aug 2010, 09:13

Calculated Controls on a Report

Post by bkessinger »

Hi All:

I have a report with a subreport. I am performing calculations on a couple of fields (one is on the sub-report and one is a difference between a control on the Main report and a control on the sub-report) and showing them in the group footer. When I try to sum() these controls in the Report Footer, I'm being asked for parameters for these two controls. Please assist. Thanks.

Bill K.
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78545
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Calculated Controls on a Report

Post by HansV »

Try the following:

Duplicate the controls in the group footer.
Set the Running Sum property of the duplicates to Over All.
Change the Control Source of the controls in the report footer to simple references to the duplicates, e.g.

=[DuplicateOfBalanceDue]

where DuplicateOfBalanceDue is one of the duplicates in the group footer.

When it works correctly, set the Visible property of the duplicates in the group footer to No.
Best wishes,
Hans

bkessinger
StarLounger
Posts: 71
Joined: 27 Aug 2010, 09:13

Re: Calculated Controls on a Report

Post by bkessinger »

Thank you Hans. That did the trick.