How to Fix Microsoft Access Query Returning Duplicate Records
Question details
The user needs to understand why an Access query joining two or more tables outputs duplicate rows and how to prevent it.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Running a relational database query involving multiple joined tables.
- Observed behavior
- The query results display duplicate rows or multiple instances of the same record instead of returning unique entries.
Before troubleshooting, open your Access database and identify the specific tables used in your query. It is highly recommended to switch to the SQL View, as Design View screenshots often hide crucial join conditions.
Fix Missing or Incorrect Join Conditions
Ensure that all necessary fields are linked between the joined tables to prevent a Cartesian product.
When you query multiple tables without properly defining how they relate, Access pairs every record in the first table with every record in the second table. This missing join condition creates massive duplication.
Correcting the table relationships and ensuring all required join conditions are included in the query will naturally resolve the duplicate rows without masking underlying data issues.
Right-click your query in the Navigation Pane and select 'Design View'.
Check the lines connecting your tables to verify that relationships are correctly established.
Click the 'View' button on the Home tab and select 'SQL View' to inspect the actual code.
Verify the 'ON' clause in your 'INNER JOIN' or 'OUTER JOIN' statements to ensure matching fields are accurately specified.

Use the DISTINCT Keyword (Unique Values Property)
Force the query to return only unique rows when duplicates are genuinely unwanted and table joins are already correct.
Looking for a Free Office Suite? Try WPS Office
While Microsoft Access is a powerful database tool, many everyday data management, filtering, and reporting tasks can be handled more easily with spreadsheets. WPS Office is a free, lightweight alternative to Microsoft Office that allows you to analyze exported database data effortlessly.
- 1. Export Access Data: Export your Microsoft Access query results or table as an Excel (.xlsx) or CSV file.
- 2. Open in WPS Spreadsheet: Launch WPS Office, open the Spreadsheet application, and load your exported data file.
- 3. Remove Duplicates Easily: Navigate to the 'Data' tab and click 'Remove Duplicates' to clean up your dataset instantly with a visual interface.

Frequently Asked Questions
Does the DISTINCT keyword fix incorrect table joins?
No, using DISTINCT or 'Unique Values' only hides the duplicates from the final query output. If your tables are missing a join condition or have incorrect relationships, you must fix the underlying SQL JOIN logic first to ensure your data analysis is accurate.
Why does a one-to-many relationship cause duplicate rows in Access?
In a query involving a one-to-many relationship, the record on the 'one' side will repeat for every matching record on the 'many' side. This is standard relational database behavior to display all related data accurately.
How should I share my Access query when asking for help online?
Always switch to the SQL View and copy the full SQL text statement to share. Screenshots of the Design View are less useful because they often hide important criteria, field expressions, and join properties. Providing sample table structures and data also helps others troubleshoot faster.




