Results 1 to 4 of 4
  1. #1
    terdfurgeson is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    4

    Return list of records that fail to append?

    I've searched the internet for about 2 hours now without success. Hopefully I've just been using the wrong search terms.



    In short, I want to know which records fail to append based on violating the primary key. (Win 7, Access 2010 32bit) Similar to how Access creates import table errors, but for append violations...

    Is this something anyone might have a solution to do? The DB takes a daily data dump. Failures to append (in this DB) indicate a status of "complete" that needs to be re-examined. (A true complete will not be present in the daily file). The daily file also contains all new daily work, thus it isn't just a list of "completed" tasks to re-examine.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    Not if you are using the import wizard. What method is used to import the records?

    Where does data come from - Excel, CSV, another db app?

    Can you set a link to the source?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    terdfurgeson is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    4
    Thanks for the quick answer.

    Import is done via VBA:
    DoCmd.TransferText acImportDelim, "ImportSpec2", "Data", OutputLocation & "DB File to Import for " & dte & ".csv", True

    Warnings are suppressed as I don't need it telling me there are key violations if I don't see them

    The data comes daily in a large excel file. I manipulate this down to the relevant parts for me, then import the CSV. I hadn't though of linking to it, but I'd prefer one single data file if I can make it happen that way.

    Maybe getting out of the office will clear my head and I'll think better tomorrow....

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    So maybe set a link to the file then use the link like a table in query to find the duplicate key records.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 19
    Last Post: 02-14-2015, 11:44 AM
  2. Replies: 11
    Last Post: 02-11-2015, 06:24 PM
  3. Replies: 9
    Last Post: 08-19-2014, 12:41 PM
  4. Replies: 9
    Last Post: 04-22-2013, 11:19 AM
  5. Replies: 3
    Last Post: 01-24-2013, 02:38 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