Counting the Text-values of Fields in Report (1 Viewer)

russi

Registered User.
Local time
Today, 10:09
Joined
Jul 18, 2000
Messages
385
Help.
I have fields that must contain text values such as MALE , FEMALE, ...
I need to make reports which will add the number of records that have a given value (i.e., How many FEMALES)
I am lost on how to do this. I have tried unbound text boxes in both detail & footer sections, but get error messages when even entering the '=' sign to write an expression.
HELP. Please. Thanks!
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 05:09
Joined
Feb 19, 2002
Messages
43,515
The following query will produce the counts you need. You can use it as the recordsource for a subform you place in the report footer of the main report.

Select SexCode, Count(*) AS CountOfSexCode
From YourTable
Group By SexCode;
 

Users who are viewing this thread

Top Bottom