I have a variable I created from the code below. I need to summarize this field now for the group it is nested in group 1. How can i do that?
Group 2 Varable
WhilePrintingRecords;
Global NumberVar MaxSTDHrs;
if {@SumStdHrs} > MaxSTDHrs then
MaxSTDHrs := {@SumStdHrs};
if Sum ({@CY Tot Hrs}, {ProductivityTemp.EmpID}) >= (MaxStdHrs * .95) then
MaxStdHrs else Sum ({@CY Tot Hrs}, {ProductivityTemp.EmpID})
So for group 1 I need it to add this up.