Solved

Find duplicates in an Access table

Posted on 2014-02-19
2
314 Views
Last Modified: 2014-02-19
I have an Access table that currently does not have a primary key. The table has many fields.

There should be only one record for a given date, account number and location but apparently in some instances, there is more than one because when I try to create a primary key using those 3 fields, I get a duplicate values error message.

I need a query that will retrieve all records where there is more than one record for a given date, account number and location. Thank you.
0
Comment
Question by:dbfromnewjersey
2 Comments
 
LVL 20

Accepted Solution

by:
clarkscott earned 500 total points
Comment Utility
Use the Access query wizard "Find duplicates Query Wizard".
Select your table and the fields that you are checking for dups.

Scott C
0
 

Author Comment

by:dbfromnewjersey
Comment Utility
Thanks.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now