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!

How to display page wise running totals in crystal 8.5 2

Status
Not open for further replies.

gubhare

Programmer
Apr 29, 2002
12
GB
Hi,

I want to display page wise running totals i.e. the running total should be reset after each page. How can I achieve this as I can not find any way of doing this.

I am stuck with this problem can somebody pls help

Thanks in advance


Cheers
Ganesh
 
One way to do this would be to create manual running totals using formulas i.e.

Place this in the Page Header section and suppress it
//@Reset
WhilePrintingRecords;
Shared NumberVar RTotal :=0;

Place this in the whichever section contains the field you want to total
//@RunningTotal
WhilePrintingRecords;
Shared NumberVar RTotal := RTotal + {Field to total};
RTotal

Place this in the page footer section
//@Display
WhilePrintingRecords;
Shared NumberVar RTotal;
RTotal

HTH

Gary Parker
MIS Data Analyst
Manchester, England
 
Thank you very much guys for u r help. I have done they way you have suggested and it worked.



Cheers
Ganesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top