Fix Word Mail Merge Errors with Access Query Parameters
Question details
The user needs to successfully perform a Word mail merge using a parameterized Access query without encountering file-not-found errors.

- Product
- Microsoft Word and Microsoft Access
- Device & OS
- not provided
- Scenario
- Executing a mail merge in Word that connects to an Access database where the underlying query expects dynamic parameters, such as a date input or a reference to an open form control.
- Observed behavior
- The mail merge fails to run and triggers a file-not-found error because Word cannot directly resolve or prompt for the required Access query parameters.
Verify that your query runs successfully in Microsoft Access before attempting to connect it to Word. Also, ensure you have sufficient permissions to create temporary tables or export files from your database.
Export Query Results to a Delimited Text File
Use Access automation to run the query, evaluate the parameters, and export the results to a temporary text file that Word can easily read.
Microsoft Word cannot natively pass parameters back to Access during a mail merge. By exporting the evaluated data to a plain text file, you bypass the connection limitation and provide Word with a stable data source.
Open your Microsoft Access database and ensure the form containing the required parameters is open and filled out.
Use a VBA script or an Access macro to run the parameterized query and export the output as a delimited text file (e.g., CSV or TXT) to a known location on your computer.
Open your Microsoft Word document, navigate to the Mailings tab, click 'Select Recipients', and choose 'Use an Existing List'.
Browse to the exported delimited text file, select it as your data source, and proceed with inserting your merge fields.

Use a Temporary Access Table
Convert your parameterized query into a Make-Table query to store the results in a static table for the Word mail merge.
Simplify Document Creation with WPS Office
If complex database integrations and mail merge errors in Microsoft Office are slowing you down, consider switching to WPS Office. It provides a highly compatible, streamlined, and free alternative for managing documents and performing mail merges with spreadsheet data.
- 1. Download and Install: Get the free WPS Office suite from the official website and install it on your computer.
- 2. Prepare Your Data: Organize your mailing list or required data in a simple WPS Spreadsheet.
- 3. Run Mail Merge: Open your document in WPS Writer, navigate to the References tab, click Mail Merge, and select your spreadsheet to instantly generate your documents.

Frequently Asked Questions
Why does Word show a file-not-found error for my Access query?
This error happens because Word uses OLE DB to connect to Access databases. This connection method cannot prompt users for input parameters or read values from open Access forms, causing the data request to fail completely.
Can I type the parameters directly into Word during the mail merge?
No, Microsoft Word does not have a built-in interface to pass dynamic parameters back to an Access database query during a mail merge operation.
How do I remove the parameter prompt from my Access query?
To stop the prompt, open your query in Design View in Access and remove any bracketed criteria (such as [Enter Date]) from the Criteria row of your fields.
Does WPS Writer support Mail Merge functionality?
Yes, WPS Writer features a robust and easy-to-use Mail Merge tool. You can quickly connect your document to WPS Spreadsheets (.xlsx) or CSV files to generate bulk letters, labels, or emails without database connection errors.




