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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Query for duplicates 2

Status
Not open for further replies.

KFuessel

Technical User
Aug 9, 2007
5
US
I have created an Access 2003 database that stores all of our software licenses. With Microsoft Open Licenses, many of the License Agreement Numbers are the same and I would like to list them in a query.

How do I create a Access Query that will list only the records that have duplicate "LicenseAgreementNumber" fields?

Your help will be greatly appreciated.
 
SELECT LicenseAgreementNumber
FROM yourTable
GROUP BY LicenseAgreementNumber
HAVING Count(*)>1

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
You could also use the query wizard, one of the options is to create a query that selects duplicate values.

Pampers [afro]
Keeping it simple can be complicated
 
I tried creating the query again using the query wizard and I did not see the option to "select duplicate values".

I did find the option to omit duplicates by going into Properties for the query and selecting "Yes" for Unique Values, but that is not what I want.

Let me know if I'm looking in the wrong place. Thanks again for your help.
 
Wrong wizard. Click on "New", then highlight "Find Duplicates Query Wizard".

"Before you criticize someone, you should walk a mile in their shoes.
That way, when you criticize them, you're a mile away and you have their shoes."
 
It worked perfectly. I did not know that that feature was there.
Thanks again for your help. [smile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top