Value count (1 Viewer)

RACHNA

Registered User.
Local time
Today, 05:36
Joined
Nov 18, 1999
Messages
12
I have some a combo box named status with the following values

Status:
Accepted
Rejected
Incomplete
Deflected
Wthdrawn

In a report how can I show how can I show the number of times each value is chosen?

i.e Show how many times "Accepted" is chosen?

Thanks!!
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 00:36
Joined
Feb 19, 2002
Messages
43,374
Use the following query:
Select Status, Count(*) As Count
From YourTable
Group By Status;

This will produce the following recordset:

Status ---- Count
Accepted --- 503
Rejected --- 89
Incomplete - 46
Deflected -- 7
Wthdrawn --- 15
 

Users who are viewing this thread

Top Bottom