Results 1 to 7 of 7
  1. #1
    eabano is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    3

    Remove Duplicates


    I have a table with the following data. If I use the Remove duplicates Query in Access it removes all the address that has the same street number and leave one address. So if I have 200 unit apartments I only get left 1 address

    Any assistance is greatly appreciated.

    Click image for larger version. 

Name:	Duplicate.JPG 
Views:	12 
Size:	123.3 KB 
ID:	38561

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    What exactly do you consider "duplicate"? Be very explicit so we understand what you are trying to do.

    You might consider looking for and adjusting/removing/fixing records where Apartment_ is empty/blank.

  3. #3
    eabano is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    3
    I want to have one address like this one

    4425 BADMINTON DR TPIA
    4425 BADMINTON DR BSMT

    Reduced to
    4425 BADMINTON DR

    And those Addresses with APARTMENT UNIT Numbers as shown below should not be showing duplicates like the one below.
    2000 CREDIT VALLEY RD 110
    2000 CREDIT VALLEY RD 111
    2000 CREDIT VALLEY RD 112
    2000 CREDIT VALLEY RD 113
    2000 CREDIT VALLEY RD 122
    2000 CREDIT VALLEY RD 123
    2000 CREDIT VALLEY RD 124
    2000 CREDIT VALLEY RD 125
    2000 CREDIT VALLEY RD 201

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Why do you need to remove duplicates? Seems to me you could get what you're after using an aggregate query

    SELECT Street_Num, Street_Nam, Street_Typ FROM <TableName> GROUP BY Street_Num, Street_Nam, Street_Typ

  5. #5
    eabano is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    3
    Doing this I will lose the apartment units such as below
    2000 CREDIT VALLEY RD 110
    2000 CREDIT VALLEY RD 111
    2000 CREDIT VALLEY RD 112
    2000 CREDIT VALLEY RD 113
    2000 CREDIT VALLEY RD 122
    2000 CREDIT VALLEY RD 123
    2000 CREDIT VALLEY RD 124
    2000 CREDIT VALLEY RD 125
    2000 CREDIT VALLEY RD 201

    I will only get:
    2000 CREDIT VALLEY RD

    Without the Apartment Units.

  6. #6
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    so add the apartment number to the query

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    And those Addresses with APARTMENT UNIT Numbers as shown below should not be showing duplicates like the one below.
    What/why exactly do you think these are duplicates?
    What are you trying to accomplish---please be specific and use simple, plain English?

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

Similar Threads

  1. Remove Duplicates but leave the unique
    By parthiv in forum Access
    Replies: 1
    Last Post: 05-16-2016, 02:36 AM
  2. How to remove duplicates from Form Recordsource
    By ittechguy in forum Programming
    Replies: 6
    Last Post: 10-08-2015, 11:33 PM
  3. Want to remove duplicates from a SQL code
    By Huddle in forum Access
    Replies: 1
    Last Post: 12-31-2013, 03:11 PM
  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

Tags for this Thread

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