I am searching through a table looking for jobs that match my discription, and I keep getting a End of file encounter error when I use skip. How can I get around this?
workcenter = thisform.text1.Value
SELECT 1
USE c:\vista\c11a
SELECT 2
USE c:\vista\jjops
SELECT 1
DO WHILE ! EOF(1)
wrkce = loc
wrkname = name
SELECT 2
LOCATE FOR jadesc=wrkname AND jawrkc=wrkce
SKIP
IF jadesc=wrkname
nseq=jaseq
nwrkc=jawrkc
SELECT 1
replace nxtseq WITH nseq
replace nextwkc WITH nwrkc
ELSE
SELECT 1
ENDIF
SKIP
ENDDO
brow
workcenter = thisform.text1.Value
SELECT 1
USE c:\vista\c11a
SELECT 2
USE c:\vista\jjops
SELECT 1
DO WHILE ! EOF(1)
wrkce = loc
wrkname = name
SELECT 2
LOCATE FOR jadesc=wrkname AND jawrkc=wrkce
SKIP
IF jadesc=wrkname
nseq=jaseq
nwrkc=jawrkc
SELECT 1
replace nxtseq WITH nseq
replace nextwkc WITH nwrkc
ELSE
SELECT 1
ENDIF
SKIP
ENDDO
brow