PRB: Jet ODBC Driver Error 40002: Operation Invalid at This Time (186196)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q186196 SYMPTOMS
Using RDO and transactions against the Microsoft Access ODBC driver results
in the following error message:
Run-time error '40002':
S1011:[Microsoft][ODBC Microsoft Access 97 Driver]Operation invalid at this time
CAUSE
The ODBC driver does not support transactions on a connection that has open
Resultsets. The Resultset must be opened and closed within the scope of the
transaction.
RESOLUTION
There are three resolutions:
- Choose a different back-end database whose ODBC driver does not have
this limitation.
- Use DAO instead of RDO.
- Rewrite the code to avoid this limitation.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB186196 |
---|
|