OpenQuery Action You can use the OpenQuery action to open a Select query or Crosstab query in Datasheet view, Design view, or Print Preview. This action runs an Action query. To specify parameters for an Action query, you use the RunSQL action. You can also select a data entry mode for the query. The OpenQuery action is similar to clicking the Open button or Design button after clicking Queries under Objects in the Database window, and then selecting a query. With this action you can select additional options. If you use Datasheet for the View argument, Access displays the result set if it is a Select query, Crosstab query, Union query, or Pass-Through query whose ReturnsRecords property is set to Yes; and it runs the query if it is an Action query, Data-Definition query, or pass-through query whose ReturnsRecords property is set to No.
The OpenQuery action has the following arguments.
|