How Do I Countn the # of "True" in a True/False Field?

G

Guest

I have a table with three fields.

1. State
2. CourseName
2. Played

Played is the true/false field.

I need to create a query that will count the number of courses played by
state.

Any ideas? I've tried the Sum and Count features to no avail.

-Adam
 
G

gumby

Create a select qry first to get all the true values, and then a total
qty to count played and group by state.
 
G

gumby

Create a select qry first to get all the true values, and then a total
qry to count played and group by state.

base the second qry off of the first one.
 
G

Guest

You can do this in one query
SELECT Count(YourTableName.CourseName) AS CountOfCourseName, State
FROM YourTableName
WHERE ((YourTableName.Played) =True)
GROUP BY YourTableName.State
 

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