Code not working for all lines of table

lavanyaballurgilavanyaballurgi Member Posts: 235
Hey guys,

My aim - to make ENDING NO field of NO. SERIES LINES blank for last month's number series. So I created a form with a button & here is code.

<Control1000000000> - OnPush()
gdt_firstdate := 0D;
gdt_firstdate := CALCDATE('<-CM>', TODAY);
grc_NoSeriesline.SETRANGE("Starting Date",gdt_firstdate);
IF grc_NoSeriesline.FINDSET THEN
REPEAT
grc_NoSeriesline.VALIDATE("Ending No.",'');
UNTIL grc_NoSeriesline.NEXT=0;

Now this works only for last line of table. What am I missing here?

Answers

Sign In or Register to comment.