Results 1 to 7 of 7
  1. #1
    rocktap is offline Novice
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    4

    I've found duplicates but how do I delete?

    Apologies in advance for what is probably a newbie error:



    I'm using MS Access 2013 Find Duplicates Wizard. I successfully find my duplicates but the results display with an auto-generated field called 'Number of Dups'. How do go on to actually delete the duplicates from here? All the tutorials I've found indicate that I should be getting a list of the duplicates where I can just highlight and delete the dups. But this wizard is summarising them and not showing me the individual records.

    Regards

    Peter

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    What tutorial? Here is one http://www.techrepublic.com/article/...-access-query/

    Some record edits will have to be accomplished manually.
    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.

  3. #3
    rocktap is offline Novice
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    4
    Yes I viewed that tutorial - but my wizard (Access 2013) returns results in this format:

    Click image for larger version. 

Name:	dup results.JPG 
Views:	10 
Size:	20.1 KB 
ID:	20391

    Basically it lists the records that have duplicates and creates a new field that indicates the number of dups. I'm happy to manually edit the records but I can't view them individually

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I don't know why your wizard results in an aggregate query. I just built a Find Duplicates with the wizard according to the tutorial and it lists the individual records. Here is the sql statement.

    SELECT DistrictInfo.[DistrictManager], DistrictInfo.[DistrictID], DistrictInfo.[RegionName]
    FROM DistrictInfo
    WHERE (((DistrictInfo.[DistrictManager]) In (SELECT [DistrictManager] FROM [DistrictInfo] As Tmp GROUP BY [DistrictManager] HAVING Count(*)>1 )))
    ORDER BY DistrictInfo.[DistrictManager];

    You can build query without the wizard. Use query designer or SQL view and type the statement.
    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.

  5. #5
    rocktap is offline Novice
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    4
    Thanks June7

    I will have a go at the sql but I'm still learning that side of things (alternatively I might reinstall Access 2010!

    Thank you for your help :-)

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    One of the steps in the wizard is to select other fields (than the one(s) used to look for dups) in the query. Did you do that? Note the aggregate nested subquery in the example.
    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.

  7. #7
    rocktap is offline Novice
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    4
    Ah yes! Problem solved! I was selecting two fields in the first step but I did as you suggest and now I get proper, individual records. Thank you so much :-)

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

Similar Threads

  1. Delete all duplicates except one
    By Tom123 in forum Queries
    Replies: 5
    Last Post: 02-11-2014, 07:36 AM
  2. Replies: 12
    Last Post: 04-25-2013, 01:32 PM
  3. Delete duplicates from both tables
    By dakpluto in forum Queries
    Replies: 2
    Last Post: 07-02-2012, 04:49 AM
  4. Replies: 1
    Last Post: 04-29-2010, 05:22 PM
  5. Delete duplicates within one table
    By zbreima in forum Access
    Replies: 1
    Last Post: 01-28-2010, 06:49 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