finding duplictes

D

Dave Cullen

Is there a way to find duplicate values in one column of a data table? If I
make the column the primary key Access gives an error but won't show me
where the dups are.

Thanks
 
A

Allen Browne

Create a query with this table.

Depress the Total button on the toolbar in query design.
Access adds a Total row to the design grid.

In the Total row under the field that might be the duplicate, choose:
Group By

Add the same field again, in the next column.
Under this one, in the total row choose:
Count
In the Criteria row under this, choose:

The query now shows any values that appear multiple times, and tells you how
many.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Updateable Query Problem 9
Insert query 0
Limit Data by Index 1
Find duplicates query not working..... 2
Create a distinct Join 3
Removing Dups 3
Duplicates Query 0
Delete all but first dup 1

Top