PRB: Rollback Causes DAO Recordset Editmode To Be Set Back to 0 (179616)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q179616 SYMPTOMS
If 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.
RESOLUTION
To 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.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB179616 |
---|
|