I am creating manual running totals. My variable is not resetting to zero when the next group starts. This is my code
in header section
Numbervar RunningTotal;
RunningTotal:= 0
Detail section
Numbervar RunningTotal;
if {PurchaseLines.QtyReceived} = next({PurchaseLines.QtyReceived})
then RunningTotal
else RunningTotal:= RunningTotal + {PurchaseLines.QtyReceived}
Footer Section
Numbervar RunningTotal;
RunningTotal
When I get to the next group the variable has the values from the previous group
Help Please
in header section
Numbervar RunningTotal;
RunningTotal:= 0
Detail section
Numbervar RunningTotal;
if {PurchaseLines.QtyReceived} = next({PurchaseLines.QtyReceived})
then RunningTotal
else RunningTotal:= RunningTotal + {PurchaseLines.QtyReceived}
Footer Section
Numbervar RunningTotal;
RunningTotal
When I get to the next group the variable has the values from the previous group
Help Please