Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grand Totals For Shared Variable 1

Status
Not open for further replies.

rwn

Technical User
Dec 14, 2002
420
US
I have a shared variable from a sub report and showing its data in the main report in the GF1 Section. I would then Like to take this data in the GF1 section report and obtain a grand total in the Report Footer section.

The Groupings that I have are first by:

GH1 = Employee ID.
GH2 = Date by Day, with a parameter for date range.
 
If the subreport is in GF1a, then create a formula like this in GF1b:

whileprintingrecords;
shared numbervar x;//your shared variable
numbervar sumx := sumx + x;

Then in the report footer use this formula:

whileprintingrecords;
numbervar sumx;

-LB
 
Thanks again. I will try on Friday and let you know the results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top