Save the SQL statement for a form or report as a query
By saving as a query the SQL statement displayed in the RecordSource property of a form or report, you can run the query independently, or base new forms and reports on the query.
- Open a form in form Design view or a report in report Design view.
- Double-click the form selector or the report selector to open the property sheet for the form or report.
- Next to the RecordSource property box, click the Build button to display query Design view.
- Click Save on the toolbar.
- In the Save As dialog box, enter a name that follows Microsoft Access object-naming rules, and then click OK.
Microsoft Access adds the query to Queries under Objects in the Database window.