BUG: OpenResultset Doesn't Fire QueryComplete in Class ModuleLast reviewed: August 5, 1997Article ID: Q172239 |
The information in this article applies to:
SYMPTOMSProgram code in the QueryComplete event procedure of a rdoConnection object will not execute if you use the OpenResultset method to execute a query in a class module.
RESOLUTIONThe resolution to this problem is to call DoEvents function after opening the resultset. For example:
Set rs = cn.OpenResultset("select * from Authors", _ rdOpenKeyset, rdConcurValues) DoEventsIf you use the OpenResultset method with the rdAsyncEnable option, you need to use the following code to workaround the problem:
Set rs = cn.OpenResultset("select * from Authors", _ rdOpenKeyset, rdConcurValues, rdAsyncEnable) While rs.StillExecuting DoEvents Wend DoEvents STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : vb5all VBKBDB VBKBNet VBKBObj VBKBRDO Version : 5.0 Platform : WINDOWS Issue type : kbbug |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |