Results 1 to 3 of 3
  1. #1
    Brett1230 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    2

    Removing Duplicate records

    Organization/Suborganization Traveler Last Name Traveler First Name TANum Document Name Document Type Trip Type Special Circumstances Trip Type Trip Purpose Current Status Date of Current Status Awaiting Status Document Create Date Signed Date Last AO Approved Date Current Version Completed Date Departure Date Return Date Total Days TDY Total Trip Expenses Total Reimbursable Expenses Reference Reference Number Type of Travel
    DN520969700204N00 Jimmy Jim 1N1TP4 NNGAINESVILLE121114_A01 AUTH AA-ROUTINE TDY/TAD
    SITE VISIT ARCHIVE IMAGE SUBMIT 12/19/2014


    12/8/2014 12/8/2014 12/9/2014 12/9/2014 12/11/2014 12/12/2014 2 $603.14 $603.14
    Entitlement Travel
    DN520969700204N00 Jimmy Jim 1N1TP4 NNGAINESVILLE121114_A01 AUTH AA-ROUTINE TDY/TAD
    SITE VISIT ARCHIVE IMAGE SUBMIT 12/19/2014
    12/8/2014 12/8/2014 12/9/2014 12/9/2014 12/11/2014 12/12/2014 2 $603.14 $603.14
    Entitlement Travel

  2. #2
    Brett1230 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    2
    Not sure if anyone can see my question so I am posting it here. I am trying to remove duplicates based on the TANum field. I am a novice and I can't seem to figure out how to make that happen. I posted a record as an example. Thanks for the help.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    See if this approach fits your situation http://www.techrepublic.com/article/...-access-query/

    If table has a unique record identifier - autonumber would serve - there is an alternative method which might be just as complicated. Involves a query to return the TOP 1 ID for each TANum that has a count > 1. Review http://allenbrowne.com/subquery-01.html#TopN
    Then another query to delete those records.
    DELETE FROM table WHERE ID IN(Query1)
    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: 2
    Last Post: 11-08-2017, 09:04 AM
  2. Replies: 3
    Last Post: 03-22-2014, 04:32 PM
  3. Removing duplicate records with macros
    By sevanty7 in forum Access
    Replies: 1
    Last Post: 05-08-2013, 08:11 AM
  4. Helo with removing duplicate values in a query
    By David Sabot in forum Queries
    Replies: 1
    Last Post: 04-22-2013, 12:26 PM
  5. Replies: 6
    Last Post: 04-06-2013, 10:36 AM

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