If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Duplicate Records

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-12, 06:31
Yorkshire Lad Yorkshire Lad is offline
Registered User
 
Join Date: Jan 2011
Posts: 41
Duplicate Records

Hi All,

I am trying to append 3 different company's customer tables together to make one main mailing database.

I am ok appending the 3 all into one table which Ive called "tblMain"

tblMain now has some duplicates and I want to make sure we only mail once to each customer. I am finding duplicates based on the PostCode field. The "find duplicates" query finds the duplicates but what I want to do is:

Find any customers that appear twice or three times. Then delete the records so that they only appear once in the main tblMain.

Can anyone help?

Thanks
Simon
Reply With Quote
  #2 (permalink)  
Old 01-30-12, 07:26
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
do it manually
unless you can dream up some method of validating which is 'the' best row to keep.
use your query to identify which rows have duplicates.
then display those rows in a form / report whatever
then manually go though the list to delete, so that would probably mean best to display on a form.

there's various identifiers that might make a row a duplicate
..its could be a typo in one or more columns eg Smith's & Co, Simths, Smths & Co, J Smith & Co
you may have the same company but a different address say a different branch
you may have more than one contact at the same address eg compnay A dealt with Fred Bloggs, compnay B dealt with Jane Doe and company C dealt with Ouja M'Callit.

so possible mathcign criteria are similar top leve domain
ie match on @smiths.co.uk
match on postcode
use some form of phonics string comparison such as double metaphone

deciding what is the best approach is tricky, especially for what is often a one off process.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 01-30-12, 07:33
Yorkshire Lad Yorkshire Lad is offline
Registered User
 
Join Date: Jan 2011
Posts: 41
Thanks. You are correct that the same company can appear typed 3 different ways. This is why i have tried to use the post code to compare. When I list the duplicates, it gives me a list of 900. I was hoping I could delete/keep one without going through them manually. Thanks anyway
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On