Duplicate records

rohanmalhotra83

Registered User.
Local time
Today, 00:40
Joined
Jul 26, 2010
Messages
16
Hi

I am a beginner in access. My problem is that i have created a database, which has a list of customers with their unique ID's. Also, have many duplicate records. Table also has a Status field which can be Email sent, Chaser Sent and Amount Received. I need to find out and delete the duplicate records from the table keeping the last updated status. Could someone help me with it? Thanks in advance.
 
Last edited:
Hi, welcome to the forum - you can create a query to do this I expect but what is it you're trying to achieve? Is it the latest statues for each customer ID?
 
Hi James

Yes i am looking to keep the latest status of all duplicate records and delete rest of them.
 
OK so we need to identify which is the most recent record - have you got a date field we can use?
 
OK so create a query with customer ID, status and date. Click on the sigma button to bring up the totals row in query design (the big E in the toolbar), group by everything except the date - choose "Max" for that. That will bring back the latest record for each customer.
 
Just wondering how many tables you have? Sounds like you only have one.
 
Nah it should be OK. Have you tried the query suggestion I put in above?
 
If you've grouped correctly you shouldn't see duplicate IDs or statuses.
 
Apologies VBA, I should have quoted the post I was replying to (#10)
 

Users who are viewing this thread

Back
Top Bottom