august
There could be various reasons why you are getting ths error.
Best practice is to open ALL tables in project at start, using IN 0 argument. This code follows your USE ... IN 0 statements.
The following code is for a single user machine
SET MULTILOCKS ON
FOR lnTableNo = 1 TO 32767
[tab]IF !EMPTY(SELECT(lnTableNo)) && Checks for open tables
[tab][tab]SELE (lnTableNo)
[tab][tab]REIN && Optional
[tab][tab]lcCurrentAlias = ALIAS()
[tab][tab]CURSORSETPROP([Buffering],5,(lcCurrentAlias))
[tab]ELSE
[tab][tab]EXIT
[tab]ENDIF
ENDFOR
* Application runs
*
*
TABLEUPDATE(.T.,.T.,[FILENAME]) && Update as required
*
*
* This code needs to be at end of MAIN in CLEANUP prcedure
FOR lnTableNo = 1 TO 32767
[tab]IF !EMPTY(SELECT(lnTableNo)) && Checks for open tables
[tab][tab]SELE (lnTableNo)
[tab][tab]lcCurrentAlias = ALIAS()
[tab][tab]TABLEUPDATE(.T.,.T.) && Updates all tables
[tab][tab]CURSORSETPROP([Buffering],1,(lcCurrentAlias)) && Remove buffering
[tab]ELSE
[tab][tab]EXIT
[tab]ENDIF
ENDFOR
SET MULTILOCKS OFF
* Other cleanup code
QUIT
If this code does not resolve the problem, please advise
Chris [sig][/sig]