Cancels execution of a pending asynchronous method call.
Use the Cancel method to terminate execution of an asynchronous method call: that is, a method invoked with the adAsyncConnect, adAsyncExecute, or adAsyncFetch option.
The following table shows what task is terminated when you use the Cancel method on a particular type of object.
|If object is a||The last asynchronous call to this method is terminated|
|Connection||Execute or Open|
|Record||CopyRecord, DeleteRecord, MoveRecord, or Open|
|Command Object (ADO)||Connection Object (ADO)||Record Object (ADO)|
|Recordset Object (ADO)||Stream Object (ADO)|
Cancel Method Example (VB)
Cancel Method Example (VBScript)
Cancel Method Example (VC++)
Cancel Method (RDS)
CancelBatch Method (ADO)
CancelUpdate Method (ADO)
CancelUpdate Method (RDS)
Execute Method (ADO Command)
Execute Method (ADO Connection)
Open Method (ADO Connection)
Open Method (ADO Recordset)