I have a formula which returns a number eg(26,2345.00)
) and displays this value for each record in a group (grpname)
I'm trying to add all of these values and display this sum in the group footer.
I've created an initialize, evaluate and display formula eg @init
whileprintingrecords;
numbervar runningtotal;
runningtotal:=0;
and an evaluate function eg
@eval
WhilePrintingRecords;
NumberVar RunningTotal;
RunningTotal := RunningTotal {@totalsecondsformula);
runningtotal;
this seems to work for the first record that is displayed in the group but does not add up the second record to the first record correctly.
at the moment it shows:-
runningtotal=0
record1 = 12,461 runningtotal=12,461
record2 = 23,734 runningtotal=705,568
can you help??
thanks
) and displays this value for each record in a group (grpname)
I'm trying to add all of these values and display this sum in the group footer.
I've created an initialize, evaluate and display formula eg @init
whileprintingrecords;
numbervar runningtotal;
runningtotal:=0;
and an evaluate function eg
@eval
WhilePrintingRecords;
NumberVar RunningTotal;
RunningTotal := RunningTotal {@totalsecondsformula);
runningtotal;
this seems to work for the first record that is displayed in the group but does not add up the second record to the first record correctly.
at the moment it shows:-
runningtotal=0
record1 = 12,461 runningtotal=12,461
record2 = 23,734 runningtotal=705,568
can you help??
thanks