+ Reply to Thread
Results 1 to 2 of 2

Checking for duplicate data before importing.

  1. #1
    Forum Contributor
    Join Date
    05-19-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    107

    Exclamation Checking for duplicate data before importing.

    Good Afternoon,
    I currently have a table that houses data for the entire year. The data is call volume for a call center. Each day we add the previous day's data into the table. An example of the data is:

    QueueName Pass StartingVolume CallsPlaced CallsContacted DateofData

    This data is imported from excel spreadsheets that are saved at the end of each day automatically. The problem I am having is when people use Get External Data to import the excel spreadsheet into the table they are sometimes importing a day that was already done. I would like it to see if that data is already in there before it imports. However to do this it would need to check all the fields as sometimes the queue name and the number of calls can be the same but the pass or other data can be different so it needs to check every column to determine if that row is already in there.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Checking for duplicate data before importing.

    Assuming (1) you're database is in Access 2003?

    Use menu path "Insert > Query" to bring up the New Query dialog box.

    Select "Find Duplicates Query Wizard" and click "OK".

    Follow the steps of the wizard to build your query.

    Assuming (2) your data table is generating a Primary Key with each Import entry?

    Build a query to find the last record of each set of duplicates in your duplicate query.

    Use a delete query to delete each "last" record from your data table. Rerun the delete query until all the duplicates are gone.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1