Please visit our sponsors !
The Cancel Method
The Cancel method cancels an execution of a method call.
The Cancel method cancels different tasks for each object. The table below shows what task is
cancelled when this method is called:
Object |
Cancelled task |
Command |
Execute.
Note: The Options parameter of the Execute method must be set to
adAsyncExecute or adAsyncFetch, before the Cancel method is called,
otherwise a run-time error will occur
|
Connection |
Execute or Open.
Note: The Options parameter of the Open method must be set to adSyncConnect, or
the Options parameter of the Execute method be set to adAsyncExecute or adAsyncFetch,
before the Cancel method is called, otherwise a run-time error will occur
|
Record |
CopyRecord, DeleteRecord, MoveRecord, or Open
Note: The Options parameter of the Execute method must be set to
adAsyncExecute or adAsyncFetch, before the Cancel method is called,
otherwise a run-time error will occur
|
Recordset |
Open
|
Stream |
Open
|
Syntax
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|