Recordset.Cancel method (DAO)

Applies to: Access 2013, Office 2013

Syntax

expression .Cancel

expression A variable that represents a Recordset object.

Remarks

Use the Cancel method to terminate execution of an asynchronous Execute or OpenConnection method call (that is, the method was invoked with the dbRunAsync option). Cancel will return a run-time error if dbRunAsync was not used in the method you're trying to terminate.