I am a relatively new Access user and would really appreciate help with the following:
I have created a database for a daycare center and created a field with a drop-down menu populated with times: 7:00, 7:15, 7:30, 7:45, 8:00, etc. and called the field "Monday In". I have an In and Out field for each day of the week Monday - Friday. To fill out the form the user selects a time for a child's care hours, such as Monday In 7:00, Monday Out 6:00, Tuesday In 7:00 Tuesday Out 6:00, etc.
I want to create a query where I can calculate how many children are in the center at a given time for staffing purposes, so I built a query with the "Monday In" field and in the criteria filed I entered "8:00", but when I set the aggregate function to "count" or "sum" I get a "data type mismatch in criteria expression" error. I would like to know how many kids are in the center at 8:00, but I can't seem to make it work. I also tried to get the query to count "7:00 and 7:15 and 7:45, and 8:00", but it won't count. What am I doing wrong?
I have created a database for a daycare center and created a field with a drop-down menu populated with times: 7:00, 7:15, 7:30, 7:45, 8:00, etc. and called the field "Monday In". I have an In and Out field for each day of the week Monday - Friday. To fill out the form the user selects a time for a child's care hours, such as Monday In 7:00, Monday Out 6:00, Tuesday In 7:00 Tuesday Out 6:00, etc.
I want to create a query where I can calculate how many children are in the center at a given time for staffing purposes, so I built a query with the "Monday In" field and in the criteria filed I entered "8:00", but when I set the aggregate function to "count" or "sum" I get a "data type mismatch in criteria expression" error. I would like to know how many kids are in the center at 8:00, but I can't seem to make it work. I also tried to get the query to count "7:00 and 7:15 and 7:45, and 8:00", but it won't count. What am I doing wrong?