create a new query
choose your table
select the 3 fields everyone, sex, and category
click the Sigma icon to get the Total row
in the Total row set the everyone field to Count
in the Total row set the Sex and Category fields to Where
enter 2 in the sex criteria and 1 in the category criteria
the SQL looks like this:
SELECT Count(TableName.Everyone) AS CountOfEveryone
FROM TableName
WHERE (((TableName.Sex)=2) AND ((TableName.Category)=1));
Try this:
Select Count(*) as CountOfRecords
FROM tblYourTableName as A
WHERE A.Sex = 2 and A.Category = 1;
Just update the red code with your table name, copy and paste into the SQL window of a new query. Let me know if you have any other questions.
Bob Scriver Want the best answers? See FAQ181-2886 Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.