HOWTO: Undo Updates for a Single Row with CancelBatchLast reviewed: August 6, 1997Article ID: Q172375 |
The information in this article applies to:
SUMMARYThe Visual Basic documentation states that the Status property of an rdoResultset object can be modified to arrange whether the current row will be updated and if it is updated, how it will be updated. It is a common desire to set the Status to rdRowUnmodified so that no updates are made to the current row. However, this is an error in the documentation because the Status property is read-only and cannot be modified at run-time. Although less intuitive, undoing changes for the current row of an rdoResultset object can be accomplished with the CancelBatch method using the optional parameter, SingleRow.
MORE INFORMATIONWhen you use the optimistic batch cursor library, the CancelBatch method of the rdoResultset object cancels all uncommitted changes in the local cursor. By using the optional parameter, SingleRow, you can cancel a change to a particular row only.
Step-by-step example
Keywords : VBKBDB VBKBError VBKBHelpFile VBKBNet VBKBObj VBKBRDO VBKBBooksOnline VBKBDocs VBKBRDOResultSet Technology : odbc Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |