Results 1 to 6 of 6
  1. #1
    mlhend2002 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    3

    Remove duplicates based on date in another column

    Hello,

    I am new to Access 2007 and am looking for macro/script to go through one column, looking for duplicate values and when found change the status of the record from active to inactive in another column, based on the date found in another column on the same spreadsheet. I have an access database with over 7000 entries that would take me days to go through manually.



    Thanks in advance,

    Mark

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Can you create a query that returns just the records you are interested in?

  3. #3
    mlhend2002 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    3
    There are probably 3000 duplicates. Basically, I need a query to find duplicates in one column, and make the one that is older (based on the date in another column) inactive.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    By "column" I assume you mean "field". If the duplicate is another record then it is an entirely different problem.

  5. #5
    mlhend2002 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    3
    Sorry, I'm use to working with Excel documents..Yes, field

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If the fields are on the same row (record) then you should be able to create query that selects only the records you want. Can you?

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

Similar Threads

  1. remove Left Join duplicates
    By lokiluke in forum Queries
    Replies: 2
    Last Post: 09-16-2011, 04:53 AM
  2. Remove Duplicates Based on Criteria
    By suryaprasad in forum Access
    Replies: 0
    Last Post: 04-07-2011, 10:50 PM
  3. Replies: 2
    Last Post: 08-17-2010, 02:58 PM
  4. Replies: 1
    Last Post: 04-15-2010, 02:07 AM
  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