Date Range with Total Count Query

G

Guest

I want a query that ask the date range and give you a total count. This is
what I've got:
Field:proficiencyCompletionDate
Table:CompletionQuery
Total:Count
Show: (checked box)
Criteria:Between[EnterStartDate]And[EnterEndDate]

it's not working I get the following error message:
This expression is typed incorrectly, or its too complex to be evaluated.

please help
Kim
 
J

John Spencer

The error occurs because you are trying to find a COUNT that has a value
between two dates. What you want is a count of records where the date is
between two dates.

Field:proficiencyCompletionDate
Table:CompletionQuery
Total:Count
Show: (checked box)
Criteria: Leave this blank

Add the ProficiencyCompletionDate to the query a second time and it as
follows

Field:proficiencyCompletionDate
Table:CompletionQuery
Total: WHERE
Show: NOT checked
Criteria:Between[EnterStartDate]And[EnterEndDate]

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
G

Guest

Try

Select Count(*) As CountOfRecords
From CompletionQuery
Where ProficiencyCompletionDate Between [EnterStartDate] And [EnterEndDate]
 

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