* this is the product UPC code TEMPUPC=CNTTEMP Locate For TEMPLOC=INVCOUNT.CLOCATION; While TEMPUPC = INVCOUNT.CUPC ** I think here is the problem ** What If TEMPUPC is not equal to INVCOUNT.CUPC ** because just beforre LOCATE You set TEMPUPC=CNTTEMP, but is the CNTTEMP == INVCOUNT.CUPC ?