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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running total of formula that pulls from subreports 1

Status
Not open for further replies.

Hueby

MIS
Oct 20, 2004
321
US
Hey all, I have the formula below in my group footer (which pulls values from subreports):

whileprintingrecords;
shared numbervar mat;
shared numbervar hcost;
shared numbervar eq;
numbervar total;

total := mat + hcost + eq;

My question is... is there anyone way to get a running total of this to put in my main report footer?

...or would I have to do some type of running total in each subreport and then add them all in the main maybe?

Thanks for any help!
 
You could modify your formula so that it reads:

whileprintingrecords;
shared numbervar mat;
shared numbervar hcost;
shared numbervar eq;
numbervar total;
numbervar grtotal;

total := mat + hcost + eq;
grtotal := grtotal + total;
total;

Then in the report footer, add a formula:

whileprintingrecords;
numbervar grtotal;

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top