<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I am trying to make a processing table that takes two pieces of information from the end user - then counts and validates those records before proceeding</div><div>For some reason that I can't find it goes 'backwards' (in my mind anyways - I'm sure whoever may look at this and say it's not backwards it's your code - I get it haha)</div><div>After it selects the first valid record, it does what it's supposed to do but on the 2nd record it catches one of the 'validation' issues that I'm filtering through first...if that makes sense </div><div>First record, it grabs data from client file if it passes and does everything right, but the 2nd record it says a field is not empty (but it is)</div><div>Here is my code:</div><div><br></div><div>:fa="":input fa(5,0RJ,g) "Enter Client Number ":<br>:fb="":input fb(8,mdy/,g) "Enter Placement Date ":<br>:fa="" or fb="":exit:<br>::goto valid:<br>::end:<br>valid::lookup yar = PDM  k=fb   i=E -nx:<br>yarloop:not yar:goto counted:<br>:yar(437) ne fa:goto counted:<br>:yar(431) ne fb:getnext yar;goto yarloop:<br>:yar(438) ne "":msgbox "Problem with"<14<15<"Number Already Assigned";exi<br>t:<b>    SECOND RECORD FOUND ERRORS HERE</b><br>:yar(432)="":msgbox "Problem with"<14<15<"No DOO";exit:<br>:yar(435)="" or yar(435)=".00":msgbox "Problem with"<14<15<"No Balance or Zero B<br>alance";exit:<br>:yar(14)="":msgbox "Problem with"<14<15<"No First Name";exit:<br>:yar(15)="":msgbox "Problem with"<14<15<"No Last Name";exit:<br>:yar(23)="":msgbox "Problem with"<14<15<"No Address";exit:<br>:yar(24)="":msgbox "Problem with"<14<15<"No City";exit:<br>:yar(25)="":msgbox "Problem with"<14<15<"No State";exit:<br>:yar(26)="":msgbox "Problem with"<14<15<"No Zip";exit:<br>:yar(439) ne "01" and yar(439) ne "66":msgbox "Problem with"<14<15<"Status is"<y<br>ar(439);exit:<br>:yar(437)=fa and yar(431)=fb:x(10,.0,g)=x+"1":<br>::getnext yar;goto yarloop:<br>::end:<br>counted:x="0":msgbox "No Records Selected";exit:<br>:fc="":input popup fc(1,yesno,g)"I found"<x<"Accounts - Is this correct? ":<br>:fc ne "Y":exit:<br>::goto client:<br>::end:<br>client::lookup cli = client  k=437  i=A -nx:<br>:not cli:msgbox "Client"<437<"Not Found!";exit:<br>:cli(72)="90":msgbox "Client"<437<"is Inactive!";exit:<br>:cli and cli(72) ne "90":438=cli(17);430=430{cli(17);cli(17)=cli(17)+"1";write:<br>::end:<br>::goto selectm:<br>selectm:437=fa and 431=fb and 438 ne "":select;end:</div><div><br></div><div>So everything works fine- it correctly finds 3 records that meet my criteria </div><div>The first record it finds, it adds data from 'client' lookup, increments it by 1 and does what it's supposed to - 2nd record (that has already passed validation in my eyes) then says 'Problem with Mary Smith Number Already assigned'</div><div>But after the error, if I go look at the record, that field is empty...?</div><div><br></div><div>Does anyone see an issue with what I'm doing in this processing table?</div><div><br></div><div>I'm running this as     rreport filename -f CoverSheet -u -a -v select  (the above code is in my select processing table - then it's supposed to pass those records to CoverSheet)</div><div><br></div><div>Thanks</div><div><br></div><div>Scott</div><div>PDM</div></div></div></div>