Document Editing Problems

Fix Missing Records in Word Mail Merge Connected to Access Query

Tauseeq MagsiTauseeq Magsi Nov 3, 2026 868 views

Question details

The user needs to resolve an issue where a Microsoft Word mail merge fails to display all recipient records when connected to a complex Microsoft Access query.

How to Fix Missing Records in a Word Mail Merge Linked to an Access Query
Product
Microsoft Word, Microsoft Access
Device & OS
not provided
Scenario
Executing a mail merge in Word using a complex Access query (containing multiple OR conditions, IIf expressions, and joins) as the data source.
Observed behavior
The recipient list in Word shows fewer records than the actual query results in Access, often ignoring criteria in the second half of complex OR statements.
Before you start

Ensure you have permission to edit queries in your Access database and verify that the original select query returns the correct number of records when run directly in Access.

Solution 1Recommended

Use a Make Table Query to Materialize the Data

Convert the complex query into a Make Table query to create a temporary table. This provides Word with a static, materialized data set instead of forcing it to re-evaluate complex SQL statements.

Microsoft Word uses OLE DB to communicate with Access during a mail merge. When connecting directly to a complex query containing SELECT DISTINCT, nested IIf statements, and multiple OR conditions, the OLE DB provider often fails to evaluate all criteria correctly, resulting in dropped records.

1
Convert Select Query to Make Table

Open your database in Microsoft Access. Open your complex query in Design View, navigate to the Query Design ribbon, and click 'Make Table'. Enter a name for the new temporary table (e.g., tblMergeData).

2
Run the Query in Access

Click 'Run' on the ribbon to execute the Make Table query. This action evaluates all complex SQL statements internally within Access and writes the finalized data into the temporary table.

3
Update Word Mail Merge Data Source

Open your Microsoft Word document. Go to Mailings > Select Recipients > Use an Existing List. Connect to your Access database and select the newly created temporary table instead of the query.

4
Automate the Process (Optional)

To streamline this workflow, add a short VBA script or a Macro step in Access that automatically runs the Make Table query right before the Word mail merge is initiated.

Use a Make Table Query to Materialize the Data
Data Integrity Secured: By feeding a flat table to Word, you bypass the SQL evaluation limitations of the OLE DB connection entirely.
Free Microsoft Office alternative

Experience Flawless Mail Merges with WPS Office

If troubleshooting complex Microsoft Access and Word integration issues is slowing you down, consider switching to WPS Office. With robust compatibility for .docx and .xlsx formats, WPS Office allows you to seamlessly manage your recipient data in WPS Spreadsheet and execute error-free mail merges in WPS Writer—without the need for complex SQL workarounds.

  1. 1. Download and Install: Visit the official WPS website to download the free suite and install it in minutes.
  2. 2. Prepare Data in Spreadsheets: Easily organize your recipient list in WPS Spreadsheet, sidestepping the complexities of database queries.
  3. 3. Execute the Mail Merge: Open WPS Writer, navigate to the Mail Merge tab, select your spreadsheet, and generate your documents flawlessly.
Highly compatible with Microsoft Word (.docx) and Excel (.xlsx) formatsIntuitive and stable Mail Merge feature in WPS Writer natively linked to SpreadsheetsFree, lightweight, and requires significantly fewer system resourcesFamiliar user interface ensuring a seamless migration with zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why does Word drop records when connected to a complex Access query?

Word connects to Access databases using OLE DB. This connection protocol often struggles to properly evaluate complex SQL syntax—such as nested IIf functions, SELECT DISTINCT, and multiple OR conditions—causing it to silently drop records that fail to meet partially evaluated criteria.

Does converting to a Make Table query permanently change my Access database?

It adds a new temporary table to your database and changes your query's action to overwrite this table each time it is run. The original source tables and your raw data remain intact and unaffected.

Can I automatically refresh the Make Table query from Word?

Not directly from Word's native interface. You will need to either manually run the query in Access before opening the Word document, or write a VBA script that triggers the Make Table query execution automatically.