Execute Method
Open Method
Command Cancel Method
Record Cancel Method
Recordset Cancel Method
Stream Cancel Method
METHOD Connection::Cancel
connectionobject.
Cancel
The
Cancel
method is used to cancel the last pending, asynchronous call involving either the
Execute
or the
Open
methods of the
Connection
object.
This requires that the
Options
parameter of the
Open
method be set to the
adSyncConnect
ADO constant or that the
Options
parameter of the
Execute
method be set to either the
adAsyncExecute
or
adAsyncFetch
ADO constant. Otherwise, a run-time error will be generated.
An asynchronous call returns control to the calling program before the operation is completed and allows the execution of the code to continue.
Code (VBScript):
objConnection.
Cancel
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information