Using "Count" in Queries

T

Tim

I'm having trouble with a query I'm working on. I am running it with multiple
criteria and it works perfectly fine. However, when I change the "Total" row
from "Group by" to "Count" the query comes up blank. The only time the query
performs as it should, with the counts, is when I delete the criteria for all
the other fields. How can I get the count to work while still keeping the
specific criteria the same?

Thank you in advance for the help!
 
J

John W. Vinson

I'm having trouble with a query I'm working on. I am running it with multiple
criteria and it works perfectly fine. However, when I change the "Total" row
from "Group by" to "Count" the query comes up blank. The only time the query
performs as it should, with the counts, is when I delete the criteria for all
the other fields. How can I get the count to work while still keeping the
specific criteria the same?

Thank you in advance for the help!

Correct the error in the query.

If you would like help doing so please open it in SQL view and post the SQL
text here. Can't fix what we can't see!

I'm going to GUESS that you may want to use the "Where" operator on the totals
line on the fields you're using for criteria; if you also want to group by or
count them, you may need to include the field twice. But not knowing anything
about the table, the query, or the data it's hard to say for sure.
 

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

Similar Threads


Top