PRB: Reuse of rdoQuery Object Causes "40006" Unexpected ErrorLast reviewed: December 8, 1997Article ID: Q177593 |
The information in this article applies to:
SYMPTOMSIn 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. CAUSEBecause 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.
STATUSThis behavior is by design.
MORE INFORMATIONSQL Server and Pubs sample database is used here.
Steps to Reproduce Behavior
Keywords : vb5all kberrmsg Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |