Right now that brings up an error [maybe a bug] in the CursorAdapter. Once the TABLEUPDATE is completed, the DESTROY of the CA object fires. FWIW, this is the 4th argument, and it could be what I want if I could test it.
>I suggest that you look at the 5th argument of TABLEUPDATE(), it's close to what you want.
>
>cErrorArray
>Specifies the name of an array created when nRows = 2 and changes to a record cannot be committed. The array contains a single column containing the record numbers of the records for which changes could not be committed. If you include an array name, you must include either a table or cursor alias cTableAlias or a work area number nWorkArea.
>Note If an error other than a simple commit error occurs while updating records, the first element of cErrorArray will contain –1, and you can then use AERROR( ) to determine the why the changes could not be committed.
>
>Visual FoxPro passes the value of cErrorArray, when it exists, to the CursorAdapter AfterCursorUpdate event.
>
>BOb
Mark McCasland
Midlothian, TX USA