I have a form that pulls classes from a date range. This works good as is, but I need to stop it from pulling canceled classes.
Canceled classes can have a status of 200, 220 or 240
The existing code is this:
I think this added to the end will filter out the canceled classes.
Any guidance on this would be much appreciated.
Canceled classes can have a status of 200, 220 or 240
The existing code is this:
Code:
strRecordSource = "SELECT * FROM qryBaModDailyAttendanceSheetsMenu " & _
" WHERE ([StartDate] Between #" & txtDateRangeStart & "# AND #" & txtDateRangeEnd & "#) OR " & _
"([EndDate] Between #" & txtDateRangeStart & "# AND #" & txtDateRangeEnd & "#) OR " & _
"(#" & txtDateRangeStart & "# Between [StartDate] AND [EndDate]) OR " & _
"(#" & txtDateRangeEnd & "# Between [StartDate] AND [EndDate])"
Code:
AND WHERE ([Status] <> " 200 " OR " 220 " OR " 240 ")"