Along the same lines of this question, here is my question:
I am at a training institute where courses are scheduled throughout the calendar year. Some courses are 6 weeks in duration, some are 5 weeks, some are 1 week. Our cafeteria needs to know on a week to week basis how many students will be eating in the cafeteria. A report has been created to provide them with this information only it does not pick up a course which starts on a Tuesday, for example. It will only pick up courses that run the full 5 days per week.
I'm trying to add this to my query, but everything I've tried so far does not work.
I'll give you an example:
In my report, I want to know which courses and how many students will be here the week of March 8 to 12, 2004. There are 3 courses running during this week. One starts Feb. 16, 2004 and ends March 26, 2004, another course is running on those exact dates, and a third is running Feb. 16, 2004 to March 19, 2004. So it should pick up all 3 courses. Additionally, one 3-day course is running March 9 to 11, 2004. It'll pick up the first 3 courses, but not the 3-day course.
The start date and end date is entered in separate cells of the table which holds the course dates. On the user form used to generate the weekly report for the cafeteria, the weekly start date and end date are manually inputted for the week that they need a report for.
In my query, I've tried the following Criteria statement: <=[Forms]![frm_Meal_Plans]![txt_End] in my End Date field with nothing in my Start Date field. But this picks up courses which started at the beginning of the year and not this particular week in question. I've also tried a Between...And statement and that gave me incorrect results as well.
Anyway, I may have provided more information than necessary to answer my question. Any help would be greatly appreciated.
Thanks!
Heather