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

Sub Total in Page Footer

Status
Not open for further replies.

sern

Programmer
Jan 8, 2003
31
MY
How can I display the subtotal on the page footer??
I have tried to drag it from the report footer but the system not allow me to do this.
 
Create the following three formulas:

Place this one {@resetpgtot} in the page header:

whileprintingrecords;
numbervar PageTotal := 0;

Place this one {@pgtotaldet} in the detail section:

whileprintingrecords;
numbervar PageTotal := PageTotal + {yourtable.amount};

Place this one {@displaypgtotal} in the page footer:

whileprintingrecords;
numbervar PageTotal;

-LB
 
thanks lb.
i saw my problems. i forgot to place reset on the page header. thanks for your helps.
 
how can i put the grand total in every page(page footer)?
i tried to use above formulas but failed. the report only show me the running total.
 
Instead of using an inserted grand total (which wouldn't work) for this purpose, create a formula {@grandtotal}:

sum({yourtable.amount})

Place this in the page footer. Please note that this formula assumes your grand total includes all records (no duplicates, no conditions). It will match the number you would get if you inserted a grand total into the report footer.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top