duplicate records with extra info

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

OK this is what I am trying to do. I have duplicate records (in the phone #
field) and I want to delete those records. But some of them have different
information in some fields (ie they have the same last name but a different
first name...or they have same last name different first name and different
address). I want to delete the double phone # but somehow keep the different
information (i.e. add the different first name to the other first name).
Also...I am not very knowledgable about VBA code so if you could explain it
in another way or in steps that would be great.

Val

PS I hope this makes sense????
 
cheesewizz76 said:
Hi all,

OK this is what I am trying to do. I have duplicate records (in the
phone # field) and I want to delete those records. But some of them
have different information in some fields (ie they have the same last
name but a different first name...or they have same last name
different first name and different address). I want to delete the
double phone # but somehow keep the different information (i.e. add
the different first name to the other first name). Also...I am not
very knowledgable about VBA code so if you could explain it in
another way or in steps that would be great.

Val

PS I hope this makes sense????

I am not sure what you really want to do. How about posting some dummy
records like

FNAME LNAME PHONE
Joe Meehan 456-8546
Joseph Meehan 456-8546
Joe Meehan 456-8585
Joe Smith 456-8546
Fred Jones 548-8712

Then show it how you want it to be when done.
 
OK Hope this explains it a little better

what I have…
Phone ID Fname Lname
204-637-2465 7067 Eddie Maendel
204-637-2465 7066 B Maendel
204-658-3333 7418 Dave Gervin
204-658-3333 7417 Cal Gervin
204-658-3425 12149 Dave Stewarts
204-658-3425 7422 Duncan Stewart
204-736-2622 6888 Stuart Manness
204-736-2622 6890 Sidney Manness
204-736-2622 6889 Donald Manness
204-745-2273 6901 Robt Mcintosh
204-745-2273 6877
204-746-6559 6989 Mike Maendel
204-746-6559 6966 J Maendel
204-746-6559 6990 Micheal Maendel
204-757-4874 6819 David Hofer
204-757-4874 6817 Josua Hofer
204-764-2126 7395 Albert Waldner
204-764-2126 7414 Michael Waldner
204-764-2126 7416 Peter Waldner
204-764-2126 7415 Jacob Waldner
204-829-3551 6902 Wayne Nickel

What I want…
Phone ID Fname Lname
204-637-2465 7067 Eddie & B Maendel
204-658-3333 7418 Dave & Cal Gervin
204-658-3425 12149 Dave & Duncan Stewarts
204-736-2622 6888 Stuart & Sidney & Donald Manness
204-745-2273 6901 Robt Mcintosh
204-746-6559 6989 Mike & J Maendel
204-757-4874 6819 David & Joshua Hofer
204-764-2126 7395 Albert & Michael & Peter & Jacob Waldner
204-829-3551 6902 Wayne Nickel

But remember...I have more fields (like Address1, Address2, Town...) that
have additional info....

Please Help!!!!
 
cheesewizz76 said:
OK Hope this explains it a little better

what I have.
Phone ID Fname Lname
204-637-2465 7067 Eddie Maendel
204-637-2465 7066 B Maendel
204-658-3333 7418 Dave Gervin
204-658-3333 7417 Cal Gervin
204-658-3425 12149 Dave Stewarts
204-658-3425 7422 Duncan Stewart
204-736-2622 6888 Stuart Manness
204-736-2622 6890 Sidney Manness
204-736-2622 6889 Donald Manness
204-745-2273 6901 Robt Mcintosh
204-745-2273 6877
204-746-6559 6989 Mike Maendel
204-746-6559 6966 J Maendel
204-746-6559 6990 Micheal Maendel
204-757-4874 6819 David Hofer
204-757-4874 6817 Josua Hofer
204-764-2126 7395 Albert Waldner
204-764-2126 7414 Michael Waldner
204-764-2126 7416 Peter Waldner
204-764-2126 7415 Jacob Waldner
204-829-3551 6902 Wayne Nickel

What I want.
Phone ID Fname
Lname 204-637-2465 7067 Eddie & B
Maendel 204-658-3333 7418 Dave & Cal
Gervin 204-658-3425 12149 Dave & Duncan Stewarts
204-736-2622 6888 Stuart & Sidney & Donald Manness
204-745-2273 6901 Robt Mcintosh
204-746-6559 6989 Mike & J Maendel
204-757-4874 6819 David & Joshua Hofer
204-764-2126 7395 Albert & Michael & Peter & Jacob Waldner
204-829-3551 6902 Wayne Nickel

But remember...I have more fields (like Address1, Address2, Town...)
that have additional info....

You should be able to do this using VBA programming, but how are you
going to tell Access what to do and when if you have two different Smith
families? What are you going to do when the addresses don't match? Also
remember that two people in the same family may have different telephone
numbers, sometimes several each.

Unless the subject is the family and not the individuals you may want
to rethink this. If the subject is the family first, then I suggest
splitting the database by last name (or phone number if that is the deciding
factor) then set up a one (family name or phone number) to many (first
names) relationship. Then showing the names as you want would be far
easier, even though they would not be stored that way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top