count of values

C

Clemens

I know there must be a simple solutions for this, but I fail over and over
again:

I have a table and 1 field is 'Status' In this field there can be 4
different values.
I want to create a report which displayes the count per value
value 1 = open,
value 2 = closed

I have created a query which reports the amount of each value, but I failed
to create a report based on more than 1 query.

How can I create a report with all the counts I wish for?
 
D

Dennis

Create 4 text boxes on your report, The control source for each should be

=DCount("Status","YourTableName","Status = 'Open'")

Changing the back part each time to the relevant status text.
(Don't forget the single quotation marks around Open, Closed etc.)
 
K

Ken Sheridan

Opps! That should have been

=Sum(IIf([Status] = "open", 1,0))

Ken Sheridan
Stafford, England
 

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

Top