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

How to reset running totals on every page 1

Status
Not open for further replies.

ipm

Programmer
Apr 5, 2005
16
DE
I'd like to have a running totals field in my report and I'd like to reset this field on every page.

Does anybody know how to do this?
 
Are you talking about a running total field that you get by clicking on insert, field object, running total field? Or are you talking about the variable approach with formulas?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
I don't think it is possible with running totals, which do not take notice of page changes.

You can do it with variables:

Place V_head in the Page Header section and suppress it
Code:
//   Clear the total
WhilePrintingRecords;
NumberVar PageTot :=0;
Place V_Item in the whichever section contains the field you want to total
Code:
// Accumulate
WhilePrintingRecords;
NumberVar PageTot := PageTot + 1;
Place V_Show in the page footer section
Code:
// Show
WhilePrintingRecords;
NumberVar PageTot;

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
I was talking about first option.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top