Microsoft SDK for Java

cancelUpdate

This method of the Recordset class cancels any changes made to the current record or to a new record prior to calling the update method.

Syntax

public void cancelUpdate();

Remarks

You cannot undo changes to the current record or a new record after you call the update method unless the changes are either part of a transaction that you can roll back with the rollbackTrans method or part of a batch update that you can cancel with the cancelBatch method.

If you are adding a new record when you call the cancelUpdate method, the record that was current prior to the addNew call becomes the current record again.

If you have not changed the current record or added a new record, calling the cancelUpdate method generates an error.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.