Results 1 to 3 of 3
  1. #1
    sammiantha is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    1

    auto delete duplicates

    I have never used access before today and need help for work please.

    I have been sent email contacts from different people in the company in a csv file and we are going to use them to invite people to like our new facebook site. However we do not want to email the same person multiple times so I wanted to use Access to put all the email address in a table and delete the duplicate ones and then turn it back into a csv file to upload to facebook. I have managed to import the email addresses and have a table of over 10000, I have done a query that shows we have over 3000 duplicate email addresses.



    Now, though, I can't figure out how to delete them without manually clicking on each one.

    Hope this makes sense and any help will be greatly appreciated.

    It is access 2010 that I am using.

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Do not know how things are at your end, however :
    1) Before importing, can we not set the EmailID field in the access database table as primary. This will prevent duplicates from being inserted in to the table.
    2) Another option, With the data containing duplicate email id's,
    Code:
    SELECT 
    DISTINCT Table1.EmailID 
    INTO 
    Table2
    FROM 
    Table1;
    Thanks

  3. #3
    jhargram is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    40
    you might be able to
    use DISTINCT in you SELECT statement to avoid loading them in the first
    place.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-30-2012, 10:50 AM
  2. Replies: 2
    Last Post: 01-24-2012, 02:16 PM
  3. Trying to Delete record using delete query
    By MooseOTL in forum Access
    Replies: 13
    Last Post: 10-04-2011, 02:30 AM
  4. Replies: 7
    Last Post: 03-15-2011, 11:14 PM
  5. Delete duplicates within one table
    By zbreima in forum Access
    Replies: 1
    Last Post: 01-28-2010, 06:49 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