>delete
>* code to go to next record depending on BOF and EOF
>=tableupdate(.T.,.T.,'tablename')
>* refresh and other code
Claude,
The TableUpdate is changing the records that exist and that is why you are having problems. Before you position the record issue the TableUpdate to commit the deletion so your code won't find that record to position on.
Also, check the return value form TableUpdate. The second argument is Force, and it controls whether the update will be forced past an update conflict, that si a record that ahs been changed by another user. Ther are many other things that can cause a tableupdate to fail (the server is down, the user doesn;t ahve right in the directory, the network cable is broken, etc..) and you need to recover from these situations