Solved Find duplicates in Access 2013

Sven1458

New member
Member
VIP
Local time
8:49 PM
Messages
137
Hi all,

At the office we have a data base of about 12000 customers. actually it is 12000 orders. some customer purchased from us several times. We want to send our customers a letter and introduce a new item that they may want.

the actual number of customers is about 8000 and it would cost a lot of money to send out the unneeded 4000 letters. So I am trying to find a way to eliminate the duplicates.

the database has several fields:

order # -- First Name -- Last Name -- Address -- City -- Zip

I could sort the database by address and take out the duplicates 1 by 1 witch will take forever.

I'm hoping someone here knows how to set up a query to do the job.
also, please tell me in plain English how to set it up.
Thanks
Sven
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
windows 7 ultimate x64
CPU
AMD FX 6 CORE PROCESSOR
Memory
16 GB
Graphics Card(s)
on MB
Sound Card
on MB
Monitor(s) Displays
Acer
Screen Resolution
1920x1080
Hard Drives
Seagate ( C:\)
Case
mini tower
Keyboard
Logitech wireless
Mouse
Logitech wireless
Antivirus
MSE
Browser
IE11
Duplicates in Access

Hi,

You will find a tutorial here:

Queries: How to Create a Find Duplicates Query

It's difficult to provide step by step instructions without being able to see the data. One problem is that finding duplicates requires exact text matches in the fields that you want to query for duplicates.

First Name and Last Name are no good unless they're unique.

Example:

C Smith
C. Smith
Chris Smith
Chris A. Smith
C.A. Smith

They might well be the same person but a duplicate query won't pick this up.

Address field:

123 Some Road
123, Some Road
123, Some Road, Some Town

A duplicate query won't pick this up either.

Find the most unique field (probably Zip) and compare that.

I find that sometimes the best way is to copy the table into Excel and use the find duplicates add on from asap-utilities to remove duplicates rather than using the remove duplicates function that's built into Excel.

With your duplicates removed you can copy the data back into a COPY of your Access database. (A cleancopy with the data removed before you re-populate it).

ASAP Utilities for Excel - Search in the description of all the utilities of this Excel add-in

Sorry, can't give step by step instructions as I don't use MS Office on my home machine. I only use it at work!
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
Hi Callender,
Thanks for your response.
Your first link < find Duplicates Query > is very detailed and is what I was looking for. I have a sample database at home and will try to make that work and hopefully will be the hero on Monday.
Thanks
Sven
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
windows 7 ultimate x64
CPU
AMD FX 6 CORE PROCESSOR
Memory
16 GB
Graphics Card(s)
on MB
Sound Card
on MB
Monitor(s) Displays
Acer
Screen Resolution
1920x1080
Hard Drives
Seagate ( C:\)
Case
mini tower
Keyboard
Logitech wireless
Mouse
Logitech wireless
Antivirus
MSE
Browser
IE11
In addition to what Callender has suggested you can look at some training videos that Microsoft supply & I find these very helpful. Click on the website below & scroll down paying attention to the ones on queries.

Training courses for Access 2013 - Access - Office.com

Queries are very powerful tools to use with your Access database & with practice & experimenting you can really get whatever information you want. The advantage of doing everything inside Access is that you can save it there for future use.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built using existing case
OS
Windows 7 Home Premium 64 bit sp1
CPU
Intel i5 3570 3.4Ghz Ivy Bridge SKT 1155 quad core
Motherboard
Gigabyte Z77-HD3 SKT 1155 2xSata 3, 4x USB 3.0
Memory
G-Skill Rip Jaws 16Gb (8x2) DDR3 -1600 PC3 12800 CL 10 red
Graphics Card(s)
Gigabyte NVIDIA GT610 1Gb DDR3 810/1200 PCI-E 2.0 Silent
Sound Card
NVIDIA High Definition & Realtech High Definition Audio
Monitor(s) Displays
2 x Philips 226V4L 16:9 aspect ratio
Screen Resolution
1920 x 1080 HD
Hard Drives
Samsung 840 Pro 256gb SSD, SATA 3.
Hitachi Touro Portable 1tb, USB 3.0 HDD used for image b/ups.
PSU
Corsair VS450
Case
Codeng
Cooling
PSU fan & CPU fan
Keyboard
Logitech
Mouse
Logitech Wireless trackball M570
Internet Speed
Wireless 3G. 3mg down & 550kb up.
Antivirus
Bitdefender Internet Security 2020
Browser
Opera (Current Version) & Firefox
Other Info
MS Office 2013 Pro. Davis weather station software. MGE Nova 600 avr UPS.
Hi Callender.

I set this up in no time and it works fine, How ever, I still have to remove the duplicates 1 by 1. it is better then before because I only have to look at about 1/3 of the records. Is there a way to automatically remove the duplicates and only have 1 left after it is done? Now that would be great.

Thanks
Sven
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
windows 7 ultimate x64
CPU
AMD FX 6 CORE PROCESSOR
Memory
16 GB
Graphics Card(s)
on MB
Sound Card
on MB
Monitor(s) Displays
Acer
Screen Resolution
1920x1080
Hard Drives
Seagate ( C:\)
Case
mini tower
Keyboard
Logitech wireless
Mouse
Logitech wireless
Antivirus
MSE
Browser
IE11
Hi Ranger4,

Thanks for the link, I will look at the videos.
thanks
Sven
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
windows 7 ultimate x64
CPU
AMD FX 6 CORE PROCESSOR
Memory
16 GB
Graphics Card(s)
on MB
Sound Card
on MB
Monitor(s) Displays
Acer
Screen Resolution
1920x1080
Hard Drives
Seagate ( C:\)
Case
mini tower
Keyboard
Logitech wireless
Mouse
Logitech wireless
Antivirus
MSE
Browser
IE11
Hi Callender.
I copied the table into Excel and use the find duplicates button to
remove duplicates. it looks like it is working fine.
Again, Thank you for your help

Sven
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
windows 7 ultimate x64
CPU
AMD FX 6 CORE PROCESSOR
Memory
16 GB
Graphics Card(s)
on MB
Sound Card
on MB
Monitor(s) Displays
Acer
Screen Resolution
1920x1080
Hard Drives
Seagate ( C:\)
Case
mini tower
Keyboard
Logitech wireless
Mouse
Logitech wireless
Antivirus
MSE
Browser
IE11
Remove duplicates

Hi again,

Before doing anything else it's a great idea to copy your access database so that you've got a copy if anything screws up.

That Excel add in that I mentioned can remove duplicate leaving only one entry. It's free for home use.

Other than that you can create an extra column in Access with the heading Duplicate and display that in your query results (add it as a field to display) - in fact choose to display all available fields.

When you view the duplicates query results you can copy the data into Excel by clicking the top left corner then Press "CTRL+A" then "CTRL+C" - switch to your excel spreadsheet and click in the left margin on the first row. Press "CTRL+V" to paste the data.

In theory it should be sorted in the correct order but if it isn't - highlight the field that contains duplicates and from the ribbon choose to sort in ascending order.

You should be seeing a pair of duplicate records followed by another pair repeated all the way down the spreadsheet.

Note: this example only shows one data field. Your spreadsheet should contain all available fields.

PlanMaker - [Untitled 1].jpg

If you head to your duplicates column you can add a Y for the first few alternate rows like this:

PlanMaker - [Untitled 2].jpg

Then highlight those first few cells and click and drag from the bottom right hand corner. Drag all the way down to your last entry.

2014-02-03 01_13_27-PlanMaker - [Untitled 3].jpg


You can then use the Autofilter to filter for empty cells. Here's how to set up the filter:

Excel 2013: Filtering Data - Lesson 19

So you highlight the header row and choose to filter. If you click the little arrow on the right hand side of your column headed Duplicate you can choose to filter blanks. Filter them out and copy the resulting data into another new spreadsheet.

Then in your Access Duplicates Query results window use the same method as before to highlight the data:

Click the top left corner then Press "CTRL+A then press DELETE.

This should remove all duplicate records entirely. Close the query.

Then in the main table - scroll to the bottom row.

Go back to your new de-duplicated Excel spreadsheet and copy the data into Access,

It's the same method.

Click the top left corner then Press "CTRL+A" then "CTRL+C" - switch to your Access Database and click in the left margin just below the bottom row (in other words the left margin of the next available empty row). Press "CTRL+V" to paste the data.



Or you can use the complicated method outlined here:

Eliminate duplicate records with this built-in Access query - TechRepublic
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
wow, very impressive,
I will take a look at that.
thanks again for your help

Sven
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
windows 7 ultimate x64
CPU
AMD FX 6 CORE PROCESSOR
Memory
16 GB
Graphics Card(s)
on MB
Sound Card
on MB
Monitor(s) Displays
Acer
Screen Resolution
1920x1080
Hard Drives
Seagate ( C:\)
Case
mini tower
Keyboard
Logitech wireless
Mouse
Logitech wireless
Antivirus
MSE
Browser
IE11

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
windows 7 ultimate x64
CPU
AMD FX 6 CORE PROCESSOR
Memory
16 GB
Graphics Card(s)
on MB
Sound Card
on MB
Monitor(s) Displays
Acer
Screen Resolution
1920x1080
Hard Drives
Seagate ( C:\)
Case
mini tower
Keyboard
Logitech wireless
Mouse
Logitech wireless
Antivirus
MSE
Browser
IE11
One of the most important things with Access is getting the basic design right. It is actually better to have too many fields in your main Table than not enough.
In the OP's case having a phone number field would have made this a very simple operation, as the phone number would have been unique for each customer, so when running a query, typing "No Duplicates" in the "Criteria" section of the phone number field in the query would return just the one customer per phone number & multiple listings for each customer would be avoided.
Also the query could be saved & run again at any time that a new mailing list was needed.
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built using existing case
OS
Windows 7 Home Premium 64 bit sp1
CPU
Intel i5 3570 3.4Ghz Ivy Bridge SKT 1155 quad core
Motherboard
Gigabyte Z77-HD3 SKT 1155 2xSata 3, 4x USB 3.0
Memory
G-Skill Rip Jaws 16Gb (8x2) DDR3 -1600 PC3 12800 CL 10 red
Graphics Card(s)
Gigabyte NVIDIA GT610 1Gb DDR3 810/1200 PCI-E 2.0 Silent
Sound Card
NVIDIA High Definition & Realtech High Definition Audio
Monitor(s) Displays
2 x Philips 226V4L 16:9 aspect ratio
Screen Resolution
1920 x 1080 HD
Hard Drives
Samsung 840 Pro 256gb SSD, SATA 3.
Hitachi Touro Portable 1tb, USB 3.0 HDD used for image b/ups.
PSU
Corsair VS450
Case
Codeng
Cooling
PSU fan & CPU fan
Keyboard
Logitech
Mouse
Logitech Wireless trackball M570
Internet Speed
Wireless 3G. 3mg down & 550kb up.
Antivirus
Bitdefender Internet Security 2020
Browser
Opera (Current Version) & Firefox
Other Info
MS Office 2013 Pro. Davis weather station software. MGE Nova 600 avr UPS.
Removing Duplicates Files

Thanks author for this helpful post. Actually duplicate files are very bad for our PC or Laptop. It lose our valuable hard disk space. So, we all need to clear the duplicate files. There are many software on internet to clear the duplicate files. Not all work on windows and mac. Please choose that one which works both on windows and mac. Again thanks writer for this article.

Thanks
Nishad Hasan
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Sony
OS
Windows 7
CPU
Sony
Motherboard
Sony
Memory
Sony
Graphics Card(s)
Sony
Hard Drives
Sony
Antivirus
ESET
Browser
Firefox
Back
Top