Something else is the problem....NumberVar can handle numbers into the millions.
My GUESS is that you have a reset on the value of Counter and it is getting fired before you get finished. Perhaps it is in a repeating header...if so then try something like the following
@reset
NumberVar Counter; //BTW I'd change this variable name
if notinRepeatedGroupHeader then
Counter := 0;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.