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

help with Count

Status
Not open for further replies.

MJD1

Technical User
Jul 18, 2003
134
CA
Hi all,

I'm working on a report that lists locations that are in exception. these locations have ratings such as L, M or H. Using Count([location]) on the report I was able to obtain the total number of records appearing on the report, but I can't figure out if theres an easy way of using the count method to determine the total number of records for each rating. for exemple, if theres a total of 12 locations, 4 that are L, 2 that are M and 6 that are H.

any help is appreciated.

martin
 
A starting point:
Sum(IIf([rating]='L'),1,0)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks, I forgot to mention that I am still using access97, will that make a difference?
 
PHV, thanks for your guidance, I got it working.


Martin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top