count mumber of similar itmes

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

Hi

I need to count the number of similar items is a field. E.g. How many 3s in
Field a, how many 2s in the same field .... the entry mode is an option
group with 1,2 & 3 as values.

Dcount will only count the items in the whole field...

Help appreciated, thank you in advance..

Richard
 
Richard

Are you indicating that you have a field called "Temp" (for example)... and
it has data that contains 1s, 2s, and 3s... like this:

Temp
---------------
1
1
2
2
3
1
1
2
3
3

... and based on this, you want a count of each #'s?

If so, try:

Select Temp, Count(Temp) as NumberOfTemp
From <table>
Group By Temp
Order By Temp

HTH


--
Rob

FMS Professional Solutions Group
http://www.fmsinc.com/consulting

Software Tools for .NET, SQL Server, Visual Basic & Access
http://www.fmsinc.com

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top