Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Database De-Duping

Status
Not open for further replies.

falconis

Vendor
Aug 21, 2002
1
US
I have moved an excel database into access. I would like to remove the duplicate numbers from this database: easy I know. ButI also need to capture these duplicates for a report.
 
Hi

Courtesy of the Access Setect Duplicates Query wizard builder, SQL like the following will give you a query to pick out the duplicates:

SELECT DISTINCTROW EnquiryDetails.EnquiryId, EnquiryDetails.ItemNo, EnquiryDetails.strSupplierPartNo
FROM EnquiryDetails
WHERE (((EnquiryDetails.EnquiryId) In (SELECT [EnquiryId] FROM [EnquiryDetails] As Tmp GROUP BY [EnquiryId] HAVING Count(*)>1 )))
ORDER BY EnquiryDetails.EnquiryId;

Substitute your own table and clumn names, and then make a report based on this query

Regards
Ken Reay
Freelance Developer
kenneth.reay@talk21.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top