Computing.Net > Forums > Database > Deleting Duplicates in MS Access

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Deleting Duplicates in MS Access

Reply to Message Icon

Name: neaviles
Date: October 30, 2007 at 08:43:17 Pacific
OS: XP
CPU/Ram: 1000 / 512
Product: Dell
Comment:

Hi, I'm having an issue trying to match up records I have in an Access table. Each time I append the data to the table, it creates duplicates. It doesn't match up correctly. Is there anyway to match up to stop duplicate values from happening?

For example: if I have customer name, sale date and account number in one table and account number and address, city/state, and zip in another, and I want to merge these two tables, so only the address, city/state, and zip match up with the records for each, how would I would go about it? And it there is a way to automate it, so it can be on a regular basis?

Thanks,
Naomi



Sponsored Link
Ads by Google

Response Number 1
Name: Jennifer SUMN
Date: October 30, 2007 at 15:47:25 Pacific
Reply:

The recommendation for tables in Access is One Record for every...fill in the blank. So, one record for each customer.

Having two tables for the customer data is not really proper structuring. I'd love to help you remedy this. How many records (ie unique) do you have in the Customer Table?

Life's more painless for the brainless.


0

Response Number 2
Name: neaviles
Date: October 31, 2007 at 07:47:29 Pacific
Reply:

I have over 17,000 records in the customer table and 3,500 addresses that I need to match up with account numbers.


0

Response Number 3
Name: Jennifer SUMN
Date: October 31, 2007 at 08:50:12 Pacific
Reply:

If the goal is to have all the data in one table, and your Customer Name is all one field (not recommended, but okay for now), make that the Primary Key. Then, create a relationship between that Customer name field, and make it a Foreign Key in the second table.

Then, create an append query to append the data from the second table into the first.

Just search for "Create an append query" in Access Help. That will walk you through how to do it properly.

If all you want to do is create a form or report with the information, rather than combining the tables, then you can create a query and base the form or report on the results of that query.

Life's more painless for the brainless.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Deleting Duplicates in MS Access

How to merg fields in MS Access www.computing.net/answers/dbase/how-to-merg-fields-in-ms-access/461.html

calculation in ms access www.computing.net/answers/dbase/calculation-in-ms-access/657.html

How to create a function in MS Acce www.computing.net/answers/dbase/how-to-create-a-function-in-ms-acce/328.html