PRB: Invalid Database Object after Rollback without BeginTrans (106493)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q106493 SYMPTOMS
After 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
CAUSE
You tried to commit or roll back a transaction that you didn't start
with a BeginTrans statement.
WORKAROUND
To 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.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB106493 |
---|
|