QueryDef.StillExecuting property (DAO)

Applies to: Access 2013, Office 2013

Syntax

expression .StillExecuting

expression A variable that represents a QueryDef object.

Remarks

Use the StillExecuting property to determine if the most recently called asynchronous Execute or OpenConnection method (that is, a method executed with the dbRunAsync option) is complete. While the StillExecuting property is True, any returned object cannot be accessed.

Once the StillExecuting property returns False, following the OpenConnection call that returns the associated Connection object, the object can be referenced. So long as StillExecuting remains True, the object may not be referenced, other than to read the StillExecuting property.

Use the Cancel method to terminate execution of a task in progress.