Results 1 to 2 of 2
  1. #1
    sfgiantsdude is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    34

    remove duplicates with conditional criteria

    Hi,



    I am trying to design a delete query that has an additional criteria needed.

    I want to delete identical IDs in one column only if there are identical values in an adjacent column.

    So for example, in the table below I want to delete the last row where the duplicate ID is "2700023" because the Code field has identical values, "LRAC". I do not want to delete the second row because the Code field is different for the row.

    ID Code
    2699974 BCC
    2699974 SRAC
    2700023 LRAC
    2700023 LRAC

    Any suggestions? Thanks!

  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,625
    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. Want to remove duplicates from a SQL code
    By Huddle in forum Access
    Replies: 1
    Last Post: 12-31-2013, 03:11 PM
  2. Replies: 3
    Last Post: 01-30-2013, 07:44 AM
  3. remove Left Join duplicates
    By lokiluke in forum Queries
    Replies: 2
    Last Post: 09-16-2011, 04:53 AM
  4. Remove Duplicates Based on Criteria
    By suryaprasad in forum Access
    Replies: 0
    Last Post: 04-07-2011, 10:50 PM
  5. How to remove duplicates
    By TonyBender in forum Access
    Replies: 0
    Last Post: 10-21-2009, 10:27 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