Results 1 to 5 of 5
  1. #1
    jyellis is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    20

    Delete first record if 2 fields are duplicated

    How is this done?

    If [User Name] and [Wireless number] are duplicated then delete first record.



    UserID User Name Wireless Number Equip Chgs Total Current Chgs
    C201148 John Doe 555-215-1325 10.01 48.99
    10265046 John Doe 555-215-1325 5.50 47.93

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    What denotes the "first" record? Create a duplicates query using the wizard as your starting point.

  3. #3
    jyellis is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    20
    First record = UserID with 7 characters

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    So you will be deleting all records that exist in the duplicates query where the userID has 7 characters.

  5. #5
    jyellis is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    20
    Yes and I want to do it; via query or vba

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

Similar Threads

  1. How to delete certain fields in record on button press
    By NikoTheBowHunter in forum Access
    Replies: 6
    Last Post: 05-31-2017, 10:43 AM
  2. Duplicated record including primary key
    By AlPal in forum Access
    Replies: 4
    Last Post: 12-06-2016, 05:26 PM
  3. Replies: 2
    Last Post: 07-21-2015, 11:32 AM
  4. delete record if 2 fields are blank
    By rlsublime in forum Access
    Replies: 1
    Last Post: 06-20-2012, 01:58 PM
  5. How to delete the duplicated records in a field?
    By jamal numan in forum Access
    Replies: 7
    Last Post: 10-28-2011, 01:39 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