How to "count" items in a query

Valerie123

New member
Local time
Yesterday, 23:20
Joined
Sep 15, 2004
Messages
7
Access 97: I have a query with 2 fields. One field show several numbers. I would like to total all the same numbers. Example 01 shows up a total of 3 times. 07 shows up a total of 10 times etc. Any simple language help would be appreciated.

Thanks,

Val
 
Try this...

SELECT
tblNumbers.NumberField
, Count(tblNumbers.NumberField)

AS
CountOfNumberField

FROM
tblNumbers

GROUP BY
tblNumbers.NumberField;
:cool: HTH
 
Sorry, I'm lost

Can you tell me how to insert this code

Thanks,

Val
 
I guess it would be in sql mode for the query.

Click on the drop down arrow next to View and choose sql view
 

Users who are viewing this thread

Back
Top Bottom