How to Find Which Query Supplies Data to a Microsoft Access Form
Question details
The user needs to identify the specific query, table, or SQL statement that provides the underlying data for an existing Microsoft Access form.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A user or developer is reviewing or troubleshooting an Access database and needs to trace the data origin for a specific form.
- Observed behavior
- Because Access does not maintain a permanent link to the query originally used to create the form, the current data source must be manually verified through form properties.
Ensure you have the necessary design-level permissions for the Access database and that the forms are not locked or secured against design modifications.
Check the Record Source Property in Design View
The most direct way to identify a single form's data source is by inspecting its Record Source property through the Property Sheet in Design View.
This method allows you to easily view whether the form is connected to a table, a saved query, or an embedded SQL statement.
Launch Microsoft Access and open the specific database file containing your form.
Right-click the target form in the Navigation Pane on the left and select 'Design View' from the context menu.
Press F4 on your keyboard, or click the 'Property Sheet' button located on the Form Design Tools ribbon under the Design tab.
Ensure the selection drop-down box at the very top of the Property Sheet is set to 'Form'.
Navigate to the 'Data' tab within the Property Sheet. Check the 'Record Source' field to identify the table, query, or SQL statement supplying data to your form.

List All Form Data Sources Using VBA
If you need to review the data sources for multiple forms at once, you can use a VBA script to loop through all forms and output their Record Sources.
Manage Exported Database Records with WPS Office
While Microsoft Access handles the database architecture, exported tables and queries often need to be analyzed in a spreadsheet. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office, perfect for managing your exported CSV or Excel data.
- 1. Download WPS Office: Visit the official WPS website and click the download button to get the free office installer.
- 2. Install the Suite: Run the installation file and follow the on-screen prompts to set up WPS Office on your computer.
- 3. Analyze Your Data: Export your Microsoft Access query to an Excel file format, then open it in WPS Spreadsheet to filter, format, and analyze your data.

Frequently Asked Questions
Why can't I find the original query used to create my Access form?
Microsoft Access does not preserve a permanent link tracking the specific query originally used during form creation. You can only view the form's current Record Source, which dictates where it is getting data right now.
What if the Record Source is an SQL statement instead of a query name?
Sometimes a form uses dynamically generated SQL or an embedded SQL statement instead of a saved query (QueryDef). You can click the ellipsis (...) next to the Record Source property to open the Query Builder and view or save that SQL as a permanent query.
Can I change the data source of an existing Access form?
Yes, you can change a form's data source at any time. Open the form in Design View, navigate to the Data tab of the Property Sheet, and update the Record Source to a different table, query, or SQL statement.




