I have a table that tracks the "out of office workdays" of staff members by type of work day. Currently there are two options to choose from.
I have created a report that groups the occurence of each type of workday by staff member, with a count of the number of occurences per staff member.
For example:
Staff Member A
Type: Telework
Occurence 1 Telework
Occurence 2 Telework
Total Telework Days: 2
Type: Bi-weekly Alternative Work Schedule
Occurence 1 BAWS
Total BAWS Days: 1
Staff Member B
......etc.
At the close of the report I want to have a cumulative total of the number of occurences of each type throughout the query. I know that I can count occurences by record using DCount(expr, domain, criteria) but I am having trouble with the syntax and keep receiving an error when I run the report.
The function I have been using looks like this:
DCount([Type], 'Alternate Work Schedule', ([Type]='Alternate Work Schedule'))
Where [Type] is the field with the necessary records; 'Alternate Work Schedule' is the domain for the values I want counted; and the criteria is that [Type]='Alternate Work Schedule'.
What have I done incorrectly?