PRB: Invalid Database Object after Rollback without BeginTransLast reviewed: June 21, 1995Article ID: Q106493 |
The information in this article applies to:
- Professional Edition of Microsoft Visual Basic for Windows, version 3.0
SYMPTOMSAfter your program gets this error:
Commit or Rollback without BeginTrans (Err = 3034)clicking a data control or executing a database method may result in this error:
Invalid Database Object CAUSEYou tried to commit or roll back a transaction that you didn't start with a BeginTrans statement.
WORKAROUNDTo avoid the problem entirely, always do a BeginTrans before attempting a Rollback. You can work around the "Invalid Database Object" error by using the Refresh method on the data control. For example, add the statement Data1.Refresh after the Rollback, at the bottom of the Command1_Click procedure shown in the Steps to Reproduce Behavior section below.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior Using Database Object Variables
Steps to Reproduce Behavior using Text Control Bound to Data Control
|
Additional reference words: 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |