Results 1 to 3 of 3
  1. #1
    FrontV is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Location
    Switzerland
    Posts
    2

    Question importing data into different tables AND check for duplicates

    Hi,
    I am trying to import data from excel into a database, while at the same time preventing duplicate records. Our database will contain many thousands of persons and their contact info and we will add regularly, so something that can be automated would be the best. I am making a form with some buttons which will do the different steps.

    The excel data consists of names, and email addresses and some more info, but the main thing to identify people will be name and email. Each person might also have more email addresses so I made a subtable in the DB which will only have email addresses linked to each unique personID in the main table of persons.

    Importing:


    I think I should import all data into a temporary table in Access and from there have it split into different tables with append queries. Correct me if i'm already wrong here, please. Anything more simple or easy is always welcome.

    Checking for duplicates:
    But, I want to make sure we do not add persons into the database of which we already have a record. How do I prevent this, as people can of course have similar names, but still have different email addresses. What would be the best place to check, before table is split and sent to the different tables, or after? And if I do it after, how do I find out if someone with the same initials actually has different email address and other properties, such as address and is then a different person?

    I have been stuck on this one for more than a week now...
    Last edited by FrontV; 07-11-2012 at 08:41 AM. Reason: removed typo from title

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    I have done something similar. Your import routine is the correct way to go (in my humble opinion) What you need to do is in your update queries include the table you're putting the data into make it a left outer join on all of the fields that determine if it's a duplicate or not and set the criteria on those fields to = Null.

  3. #3
    FrontV is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Location
    Switzerland
    Posts
    2
    Good to hear I appear on the right track. I'll give the outer join a go and see if it works. Thanks!

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

Similar Threads

  1. Delete duplicates from both tables
    By dakpluto in forum Queries
    Replies: 2
    Last Post: 07-02-2012, 04:49 AM
  2. Replies: 4
    Last Post: 01-31-2012, 12:42 PM
  3. Importing data into various tables
    By simba in forum Import/Export Data
    Replies: 1
    Last Post: 01-13-2011, 12:42 PM
  4. Importing and mapping data to various tables
    By rasticle in forum Import/Export Data
    Replies: 1
    Last Post: 05-17-2010, 04:22 PM
  5. Replies: 0
    Last Post: 01-08-2009, 05: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