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

Running Total w/ Page Reset

Status
Not open for further replies.

Bontebok

Programmer
Nov 18, 2002
63
US
Does anyone know how to create a running total that is reset at the start of the page?

Thanks,
Bontebok
 
Use the three-formula method:

Create a reset formula {@resetpagetot} and place it in the page header:

whileprintingrecords;
numbervar pagetot := 0;

Create a detail record formula {@detpagetot} and place in the details section:

Whileprintingrecords;
numbervar pagetot := pagetot + {table.yourfield};

Create a display formula {@displaypagetot} and place in the page footer:

whileprintingrecords;
numbervar pagetot;

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top