PRB: Reuse of rdoQuery Object Causes "40006" Unexpected Error (177593)
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 Q177593 SYMPTOMS In Visual Basic 5.0, when trying to reuse an rdoQuery
object by setting a new SQL statement to the .SQL property without closing the
corresponding resultset, the following error may result:
Run-time error '40006': An unexpected error occurred.
CAUSE Because the resultset is tied to the rdoQuery object that
was used to create it, the corresponding resultset must be closed before
resetting the rdoQuery.SQL property. STATUS This behavior is by design.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbprb KB177593 |
---|
|