I am trying to sum two charge amounts that are grouped by their charge code in a report.
Group Header 2 is for the Account
Group Header 3 is for the Charge Codes
In GH3, the charge for Charge Code 71 and the charge for Charge Code 11 are displaying properly, but I want to sum Charge Code 71 and Charge Code 11 for each Account in group Footer 3.
I cannot seem to get the correct combinations of the While Printing Records. below is what I have that is not working:
//GH2
whileprintingrecords;
Global numbervar SumChgAmt:= 0;
//GH3
whileprintingrecords;
numbervar A;
numbervar B;
//GF3
whileprintingrecords;
Global numbervar SumChgAmt:= A + B
Please advise!
Thanks
Group Header 2 is for the Account
Group Header 3 is for the Charge Codes
In GH3, the charge for Charge Code 71 and the charge for Charge Code 11 are displaying properly, but I want to sum Charge Code 71 and Charge Code 11 for each Account in group Footer 3.
I cannot seem to get the correct combinations of the While Printing Records. below is what I have that is not working:
//GH2
whileprintingrecords;
Global numbervar SumChgAmt:= 0;
//GH3
whileprintingrecords;
numbervar A;
numbervar B;
//GF3
whileprintingrecords;
Global numbervar SumChgAmt:= A + B
Please advise!
Thanks