>Hi Naomi
>
>I have added the following code just before REQUERY but I am still not able to solve the problem.
>The error occured at the REQUERY line.
>
>IF (CURSORGETPROP('Buffering')=5 AND GETNEXTMODIFIED(0)>0)
> =TABLEUPDATE(.T.,.T.)
>ELSE
> lcfldsts = GETFLDSTATE(-1)
> IF VARTYPE(lcfldsts) = 'C' AND ('2' $ lcfldsts OR '3' $ lcfldsts OR '4' $lcfldsts)
> =TABLEUPDATE(.T.,.T.)
> ENDIF
>ENDIF
>=REQUERY()
>
Try adding a GOTO TOP before your call to GETNEXTMODIFIED. You'll also want to make absolutely sure the table that may have been modified is the currently selected cursor.