Count Dissimilar Things

Novice1

Registered User.
Local time
Today, 06:07
Joined
Mar 9, 2004
Messages
385
I have a form with an unbound field. I want the field to give me a number of dissimilar things. For example ...

Record 1: Cat
Record 2: Toy
Record 3: Cat
Record 4: Cat
Record 5: Desk

I want a count of 3 (Cat, Toy and Desk). Since the items change, I'm unsure how to approach this.

Any help would be appreciated.
 
Try this SQL

Code:
SELECT Count(*) AS NumThings
FROM
(SELECT DISTINCT Name FROM YourTableName) ;
 

Users who are viewing this thread

Back
Top Bottom