Quote Originally Posted by baja_yu
It cant exceed it because you have 'Loop Until Total = 500' ...as soon as it gets to 500 it will exit. You should use:

If Total >= 500 then

instead of

If Total > 500 then

if you want to signal that the end is reached.
Well - you beat me by just a second or so - but I was typing a much longer response