Results 1 to 2 of 2
  1. #1
    Sohan is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2012
    Posts
    1

    Post Access Duplicate Records Help


    Hi,

    Wonder if anyone can help with a query in access to find duplicate records based on certain rules.

    I have a table of data which contains 7 fields as per the example image.

    I need to have a query which does the following :-

    Checks the code for duplicate and returns list where items in value 1 or / and value 2 are different between the batch. In this example, it should return records for 845543 and 919071 as value 1 and value 2 are different in the batches. The records returned should be whichever. Is this possible via MS Access.

    Any help is appreciated

    Thanks,
    Attached Thumbnails Attached Thumbnails Example.jpg  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    This would be fairly easy if the batches were in different tables then could do a find unmatched query. Because they are in same table, the requirement is to get value from another record in the same table, this calls for subquery. Review: http://allenbrowne.com/subquery-01.html

    Look at the example for Get the Value in Another Record.
    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: 6
    Last Post: 07-11-2012, 10:13 PM
  2. Replies: 3
    Last Post: 05-04-2012, 12:04 AM
  3. Replies: 1
    Last Post: 01-04-2012, 01:39 PM
  4. Replies: 4
    Last Post: 12-13-2010, 05:33 PM
  5. Duplicate Records
    By softspoken in forum Queries
    Replies: 3
    Last Post: 06-21-2010, 03:33 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