Skip to content

Latest commit

 

History

History
64 lines (55 loc) · 3.49 KB

File metadata and controls

64 lines (55 loc) · 3.49 KB
title Cancel Method (ADO) | Microsoft Docs
ms.prod sql
ms.prod_service connectivity
ms.technology connectivity
ms.custom
ms.date 01/19/2017
ms.reviewer
ms.topic conceptual
apitype COM
f1_keywords
Recordset20::Cancel
_Record::Cancel
_Connection::Cancel
Command25::Cancel
_Stream::Cancel
helpviewer_keywords
Cancel method [ADO]
ms.assetid e0db4e15-6787-41e2-8f13-9e9b524d620a
author MightyPen
ms.author genemi

Cancel Method (ADO)

Cancels execution of a pending asynchronous method call.

Syntax

  
object.Cancel  

Remarks

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
Command Execute
Connection Execute or Open
Record CopyRecord, DeleteRecord, MoveRecord, or Open
Recordset Open
Stream Open

Applies To

Command Object (ADO) Connection Object (ADO) Record Object (ADO)
Recordset Object (ADO) Stream Object (ADO)

See Also

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)