Results 1 to 3 of 3
  1. #1
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283

    Duplicate Records

    Hi,

    I imported an excel file into my table, and I'm trying to Set the primary key as the ID Number. But there is duplicate records. And there is a lot of records, so its hard to find. What is the query I can run to fix this? The field name is ID Number. the table is called Customer.



    -Thanks

  2. #2
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    If you already have the data in the table, you could run something like this, and it would provide a list of the duplicate ID Numbers.
    Code:
    SELECT [ID Number], COUNT(*) 
    FROM [Customer]
    GROUP BY [ID Number]
    HAVING (COUNT(*) > 1);

  3. #3
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283
    Thank you!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Unification in duplicate records
    By okol in forum Queries
    Replies: 4
    Last Post: 01-21-2013, 09:49 AM
  2. Duplicate Records in Query, Tried Everything
    By burrina in forum Queries
    Replies: 3
    Last Post: 12-02-2012, 06:29 PM
  3. Access Duplicate Records Help
    By Sohan in forum Forms
    Replies: 1
    Last Post: 09-22-2012, 02:46 PM
  4. Duplicate records listed!
    By claysea in forum Access
    Replies: 3
    Last Post: 02-14-2012, 12:33 PM
  5. Duplicate Records
    By softspoken in forum Queries
    Replies: 3
    Last Post: 06-21-2010, 03:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums