BUG: Recordset Commands Must Wait Until OndatasetcompleteID: Q190594
|
You may see the following error appear:
This error is most likely to occur on a DHTML page and will happen most often with large database objects.A Runtime Error has occurred.
Do you wish to debug?
Line 630
Error: The operation requested by the application is not allowed if the object is closed.
The recordset is not fully loaded in memory at this point.
Wait until the ondatasetcomplete event fires before continuing.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
Wait until the ondatasetcomplete event to use the results from the newly opened recordset, like this:
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function Button1_onclick() {
Recordset1.open();
}
function fillValue() {
Textbox1.value = Recordset1.fields.getValue(0);
}
function Recordset1_ondatasetcomplete() {
fillValue();
}
//-->
</SCRIPT>
function Button1_onclick() {
Recordset1.open();
Textbox1.value = Recordset1.fields.getValue(0);
}
Additional query words:
Keywords : kbADO kbVisID600bug kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 13, 1999