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!

Total in Group and then Report Footer 1

Status
Not open for further replies.

rwn

Technical User
Dec 14, 2002
420
US
I'm using these two formula's to obtain a total in the footer. Which works fine. I need to also have a Group total for each @sharedlaborcost Grouping.

whileprintingrecords;
shared numbervar x:= {@sharedlaborcosts};
numbervar sumx := sumx + x;

whileprintingrecords;
numbervar sumx;
 
Change the accumulation formula to:

whileprintingrecords;
shared numbervar x:= {@sharedlaborcosts};
numbervar groupsum := groupsum + x;
numbervar sumx := sumx + x;

Then add a reset formula in the group header:

whileprintingrecords;
numbervar groupsum;
if not inrepeatedgroupheader then
groupsum := 0;

Add a display formula to the group footer:
whileprintingrecords;
numbervar groupsum;

-LB
 
Thanks, you are the best!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top