OnAsyncQueryFinish

<< Click to Display Table of Contents >>

 

OnAsyncQueryFinish

OnAsyncQueryFinish(Recordset, Error)

Occurs when the GetAsyncADORecordset method returns. The Recordset parameter is an ADO Recordset object generated by the Query and the Error parameter is a Boolean that, when True, indicates that the object could not be generated. The next script contains an example of using this event.

Sub query1_OnAsyncQueryFinish(Recordset, Error)
  MsgBox "Returned " + CStr(Recordset.RecordCount) + " records"
End Sub

Was this page useful?