I have a MS Access query that calculates a member’s attendance at team events over the past 12-months (i.e., Now()-365). This is one of several queries used; others calculate the total number of events that occur within the past 12-months. These are used to calculate percentages, etc. They are working fine.
All members have what is termed an ‘Attendance Calculation Date’, the date upon which they joined. This may or may not be >Now()-365.
The problem occurs when a member must take a medical leave of absence, which ‘freezes’ their attendance until they return. Thus as an example:
07/01/07 (AttendCalcDate ) . . . . 12/15/07 (LOAStart) . . . 02/21/08 (LOAEnd) . . . Now()
Hence, I would like to select all records outside the LOA period. If a member has not required LOA, the field contains null.
Currently, I select the appropriate records in MS Access 2003 by:
Design View
Field: EventDate
Table: tbl_Join_Member _Event
Total: Where
Criteria: >Now()-365 And >=[tbl_J_MemberDat es].[AttendanceCalcD ate]
Table tbl_Join_Member _Event is a many-many table between Member_ID and Event_ID
Thanks in advance
All members have what is termed an ‘Attendance Calculation Date’, the date upon which they joined. This may or may not be >Now()-365.
The problem occurs when a member must take a medical leave of absence, which ‘freezes’ their attendance until they return. Thus as an example:
07/01/07 (AttendCalcDate ) . . . . 12/15/07 (LOAStart) . . . 02/21/08 (LOAEnd) . . . Now()
Hence, I would like to select all records outside the LOA period. If a member has not required LOA, the field contains null.
Currently, I select the appropriate records in MS Access 2003 by:
Design View
Field: EventDate
Table: tbl_Join_Member _Event
Total: Where
Criteria: >Now()-365 And >=[tbl_J_MemberDat es].[AttendanceCalcD ate]
Table tbl_Join_Member _Event is a many-many table between Member_ID and Event_ID
Thanks in advance
Comment