fat controller
Slightly round the bend..
- Local time
- Today, 22:31
- Joined
- Apr 14, 2011
- Messages
- 758
I am trying to construct a query with a number of DCounts for a summary report, and each of those counts is to have more than one criteria.
So far, the code below is an example of the code, which returns #Error in five rows
I have a feeling that it is the criteria for the date that I have got wrong, but I cannot see the wood for the trees at the moment. Can anyone nudge me in the right direction?
If it makes any difference, all of the DCounts will refer to one table and will all be within the same date range.
So far, the code below is an example of the code, which returns #Error in five rows
Code:
DCount("[ID]","Attendance","[Absent]= True & " And [Date]=" Between [Forms]![DateSelect]![txtStartDate] And [Forms]![DateSelect]![txtEndDate]")
I have a feeling that it is the criteria for the date that I have got wrong, but I cannot see the wood for the trees at the moment. Can anyone nudge me in the right direction?
If it makes any difference, all of the DCounts will refer to one table and will all be within the same date range.