Say we have a table tblParts
ABC
ABC
ABC
DEF
DEF
How to create a query of unique list based upon the above table?
ABC
DEF
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » How to Create Unique List out of Duplicate List
Set the Unique Values property of the query to yes. This corresponds with changing the SQL to
Select Distinct ….
In Query Design, display the properties box, the click some empty space in the top half of the grid, so the Properties box tells you about the query, rather than one of its fields.
Hi John,
Thanks for your help.
The actual tblParts are rather complex and the PartNo repeats freely. That’s exactly where I find your Property sheet won’t work in my case.
The combination of PartID (based on autonumber) and PartNo always render each record unique. The objective here is to create a list of unique PartNo.
Armstrong
If you just want to create a list of unique PartNos, you shouldn’t include PartID in the query, only PartNo. Setting “Unique Values” to Yes will then ensure that each PartNo occurs only once.
If you want to do more, for example count the number of occurrences of each PartNo, you need a Totals query that groups by PartNo. But that wasn’t what you asked in the first post in this topic…
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications