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

Performing a COUNT which excludes duplicates

Status
Not open for further replies.

xtreme1

Programmer
May 27, 2000
51
US
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I'm attempting to query a table, and count all records in a certain field *excluding* duplicates.&nbsp;&nbsp;I'm sure this solution is extremely simple, but I can't seem to get my mind around to what I need to do.&nbsp;&nbsp;If anyone can just point me in the right direction it would be appreciated!&nbsp;&nbsp;<br><br>Ex: <br>&nbsp;&nbsp;&nbsp;&nbsp;A field with customers named &quot;Smith&quot;, &quot;Johnson&quot;, &quot;Smith&quot;, and &quot;Craven&quot; would only return a total count of three, counting only once for &quot;Smith&quot;.&nbsp;&nbsp;Thanks for any help in advance! <p>xtreme1<br><a href=mailto:rbio@excite.com>rbio@excite.com</a><br><a href= > </a><br>
 
right click on the QBE grid under query properties set unique values to yes this will eliminate dupes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top