I am using this formula to obtain the total of a number of fields:-
WhilePrintingRecords;
NumberVar Prior;
NumberVar LYS;
if {@Count} >0 //which indicates a first record for this customer
then LYS := {@Soiled Day 2} + Prior;
Prior := LYS//store the current count to compare with next record LYS
It works fine except for the first record, I guess this must mean that my record is calulated before the @count function. Any ideas to add in the first record.
WhilePrintingRecords;
NumberVar Prior;
NumberVar LYS;
if {@Count} >0 //which indicates a first record for this customer
then LYS := {@Soiled Day 2} + Prior;
Prior := LYS//store the current count to compare with next record LYS
It works fine except for the first record, I guess this must mean that my record is calulated before the @count function. Any ideas to add in the first record.