nError=0 ON ERROR nError=ERROR() IF nError = 0 END TRANSACTION ELSE ROLLBACK ENDIF DO CASE CASE nError=0 ... Transaction succesfull CASE nError=1 .... Handle the error CASE nError=2 .... Handle the error ... ENDCASEYou can also use TABLEUPDATE( 2, lForce, Alias, cErrorArray) to check if a transaction is succesfull without using the error routine.