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

Access Query Unique Count

Status
Not open for further replies.

pgh2377

Vendor
Jul 30, 2003
61
US
Unfortunatelty I don't know how to write SQL. Can anyone help me with unique counts by simply using the design view in a query. I've tried Dcount with works but when bring in the group names it just shows the group names and then the dcount of all records.
 
unfortunately I don't think the wizzard/builder allows you to do that...

however, what you do is, right click on your query, and select the "view sql" option, you will see a long string of text, and at the beginning of this, you should see the word "SELECT".
All you need to do is to write "DISTINCT" after the word "SELECT", so the string should start with "SELECT DISTINCT "

--------------------
Procrastinate Now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top