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!

Summary per page

Status
Not open for further replies.

UnleashThePain

Programmer
Oct 23, 2006
16
NL
Hi I am having problems with running a summary on a report. The summary keeps adding the total per report upon each other, while I want the summary per page.
 
Do you have a reset formula in the page header?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"A fine is a tax for doing wrong. A tax is a fine for doing well.
" - unknown
 
I only have the options:
free form placement x
hide
supress x
print at bottom
new page after
reset page number after
keep together x
suppress blank section
underlay following sections


Fornicate Under Command of the King
 
If you want to sum the values in variables for each page, do something like this:

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). Using Windows XP & Crystal 10 [yinyang]
 
In Madawc's second formula, replace the 1 with the field you want to sum--assuming you are summing an amount field.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top