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!

Totals per page in Crystal

Status
Not open for further replies.

dandman71

MIS
Aug 14, 2002
14
US
I am creating a report to count employyes based off the empno filed in a VFB database. NO grouping, just the names of the employees nad some personal information, generally 2 to 5 lines worth. All records are on the detail line and one GF to pull in the history records I am requesting.

My issue is this. I need to create a total that is based on the 'page', not a group. Is there a formula that I can use to create this? Thank you
 
You can do this using a 3 formula running total.

In the page header (field is suppresed):
whileprintingrecords;
numbervar collect:=0

In the band where the data is located (fields also suppressed):
whileprintingrecords;
numbervar collect:=collect + {data.field}

In the page footer:
whileprintingrecords;
numbervar collect

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top