PRB: Rollback Causes DAO Recordset Editmode To Be Set Back to 0Last reviewed: January 21, 1998Article ID: Q179616 |
The information in this article applies to:
SYMPTOMSIf the edit command is issued for a recordset, and an unrelated transaction is rolled back before the update command, the following error is returned when the update command is issued:
run-time Error 3020 -- "Update or CancelUpdate Without Addnew or Edit"If the transaction is committed, this error does not occur.
RESOLUTIONTo work around this problem, move the rs.Update method statement so that it is executed before the transaction is started, as shown in the MORE INFORMATION section below. To implement this workaround, change the code that has two update commands, one of which is commented. Uncomment that one and comment the one that is not commented.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : vb5all Component : dao Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |