Page 1 of 1

Posted: Fri Sep 14, 2007 2:45 pm
by ray.wurlod
Show us precisely what you did with stage variables. An approach based on stage variables can certainly work, provided your data appear sorted as in your example here. You need stage variables to "remember" Inv and RecType from the previous row, others to detect whether there's been an change in RecType and Inv, and others to perform the conditional incrementing logic.

Posted: Fri Sep 14, 2007 3:06 pm
by chulett