ADO » Recordset » Cancel

Syntax:
recordsetobject.Cancel

Cancels the execution of a pending Open call.

The Cancel method is used to cancel the last pending, asynchronous call to the Open method of the Recordset object.
 
An asynchronous call returns control to the calling program before the operation is completed and allows the execution of the code to continue.

Examples

Code:
objRecordset.Open strQuery, , , adCmdTable
...
objRecordset.Cancel

See Also: