I'm using CR 7. and am trying to get totals per page, since there isnt a running total selection for reseting per page, I'm trying to use vars. Except that I'm not getting them to work right, so I need some help.
I created 4 formula fields, the first one I put on the report header with the following: (my variable count the number or employees per page, or suppose to)
global numberVar PgNumEmp := 0;
Then in my page header I added the following formula field:
Global numberVar PgNumEmp := 0;
Then in details I have the formula field:
WhileReadingRecords;
Global NumberVar PgNumEmp;
PgNumEmp := (PgNumEmp + {Hour_Head.Num_Emps})
And lastly to print the total in the page footer:
whileprintingrecords;
numberVar PgNumEmp;
My problem is that when I print the page_footer it gives a complete total of the entire report (it's not resetting at the beginning of each page). Thanks in advance for your help. PS. If I take out the "whileprintingrecords" statement in the page footer I get a zero for the total.
I created 4 formula fields, the first one I put on the report header with the following: (my variable count the number or employees per page, or suppose to)
global numberVar PgNumEmp := 0;
Then in my page header I added the following formula field:
Global numberVar PgNumEmp := 0;
Then in details I have the formula field:
WhileReadingRecords;
Global NumberVar PgNumEmp;
PgNumEmp := (PgNumEmp + {Hour_Head.Num_Emps})
And lastly to print the total in the page footer:
whileprintingrecords;
numberVar PgNumEmp;
My problem is that when I print the page_footer it gives a complete total of the entire report (it's not resetting at the beginning of each page). Thanks in advance for your help. PS. If I take out the "whileprintingrecords" statement in the page footer I get a zero for the total.