Posted by ShastriX on 06/26/06 06:50
Thanks a lot for your analysis, Razvan :-) Broke the
SessionOff: ([ForenoonFlag] And [AfternoonFlag]) = 0
into (([ForenoonFlag] = 0) OR ([AfternoonFlag] = 0)). Though this
required repeating all the other criteria for each part of the OR:
((tblWorkDateAttendance.WorkDate)<Date()) AND
((Year([tblWorkDate].[WorkDate]))=Year(Date())) AND
((Weekday([tblWorkDate].[WorkDate])) Between 2 And 6) AND
((tblWorkDate.HolidayFlag)=False)
the query now works like a charm.
Thanks once again,
Shastri
[Back to original message]
|