Thank you for the information. I have several additional questions that I am lost on. I have developed several variables, and have quite a few more to create, that calculate the various record counts. I have created a formula with the following code: (rptMainCalculations)
whilereadingrecords;
numbervar cMaleMembers;
numbervar cTotalMembers;
numbervar cFemaleMembers;
if{StakeData_.Sex} = "MALE" then
cMaleMembers := cMaleMembers + 1
else
cFemaleMembers := cFemaleMembers + 1;
cTotalMembers := cTotalMembers + 1;whilereadingrecords;
This formula is in the detail section of the report. I have suppressed the detail and header sections of the report. I only want the Group Footer and Report Footer to print.
I have put the following formula in the Group Footer section: (rptMembers)
whilereadingrecords;
numbervar cTotalMembers;
cTotalMembers;
(as an example) this works for the first group, but the variables are not set to 0 on a group change.
I have placed the following formula in the Group Header section of the report: (rptGroupReset)
whileprintingrecords;
numbervar cMaleMembers;
numbervar cTotalMembers;
numbervar cFemaleMembers;
cMaleMembers := 0;
cFemaleMembers := 0;
cTotalMembers := 0;
I can't see what I am doing wrong. Can you help me?