pmasseycpa
asked on
Shared Variable NumberVar not totaling in Footer
I have the following setup in a Crystal Report v.10:
Group Header -- Feld Name: VacTotalH
WhilePrintingRecords;
shared numberVar VacTotal :=0;
Detail Section -- Field Name: VacAccrualManual
WhilePrintingRecords;
shared numberVar VacTotal;
VacTotal:= {@VacAccrualMonthly};
Group Footer -- Field Name: VacAccrualTotal
WhilePrintingRecords;
shared numberVar VacTotal;
The Group Header is fine. The details section works fine. The group footer is not totaling the values in the Details section. I get the following:
Group Header field = 0
Group Details Record instance 1 = 10.17
Group Details Record instance 2 = 12.13
Group Footer field = 12.13 (This should be 22.30 - a total of 10.17 and 12.13)
HELP!!! The need for this is extremely urgent and I have set it to 500 points. I'm sure it will be pretty easy, but I need it bad!!
Group Header -- Feld Name: VacTotalH
WhilePrintingRecords;
shared numberVar VacTotal :=0;
Detail Section -- Field Name: VacAccrualManual
WhilePrintingRecords;
shared numberVar VacTotal;
VacTotal:= {@VacAccrualMonthly};
Group Footer -- Field Name: VacAccrualTotal
WhilePrintingRecords;
shared numberVar VacTotal;
The Group Header is fine. The details section works fine. The group footer is not totaling the values in the Details section. I get the following:
Group Header field = 0
Group Details Record instance 1 = 10.17
Group Details Record instance 2 = 12.13
Group Footer field = 12.13 (This should be 22.30 - a total of 10.17 and 12.13)
HELP!!! The need for this is extremely urgent and I have set it to 500 points. I'm sure it will be pretty easy, but I need it bad!!
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
mlmcc