Results 1 to 3 of 3
  1. #1
    accessdave84 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    2

    Duplicate Lines in Excel Import Mess up Primary Key


    Hello All,

    Thank you in advance for helping with this!

    I'm brand new this forum and an Access noobie but I have a good amount of experience with Excel. I've got a CSV table of UPS shipping data which has multiple lines for each entry. Meaning that what I thought would be the primary key (the unique tracking #) is repeated 2 or 3 times with each record. There is additional information that is provided on the duplicate rows; a handful of fields with Fuel Surcharge costs. So I can't remove these rows without adding that data back in somehow.

    Any thoughts would be much appreciated.

    Thanks,

    Accessdave84

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    You could do a 2 pass import:
    Query 1, a UNIQUE query to import the keys.
    query. 2, a query to import the data

  3. #3
    accessdave84 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    2
    Thanks for the help. That makes a lot of sense!

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

Similar Threads

  1. Replies: 1
    Last Post: 01-10-2015, 11:46 PM
  2. VBA Text import with double lines for one record
    By vtaurusv in forum Programming
    Replies: 20
    Last Post: 10-10-2013, 12:38 PM
  3. Primary Key Auto Number not available in Excel for import
    By justphilip2003 in forum Import/Export Data
    Replies: 1
    Last Post: 04-30-2013, 07:52 PM
  4. Report Generates Duplicate Lines
    By Perceptus in forum Reports
    Replies: 12
    Last Post: 11-20-2012, 05:19 PM
  5. Replies: 3
    Last Post: 11-15-2012, 09:20 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