planetjeff
Technical User
Hello all,
I have three tables: Events (with pk EventID), Adjudicators (with pk AdjudicatorID, and Assignments (with pk EventID,AdjudicatorID) which tracks a many-to-many relationship. Events can have many judges (adjudicators), and judges can judge many events.
In my form for assigning events to adjudicators, I have two subforms. One is for displaying currently assigned events, and the other is for displaying all events. What I'd like to do is iterate through the all events subform and color-code each event base on if a) event is already assigned, b) event overlaps datewise an already assigned event, or c) event not assigned and doesn't overlap currently assigned event. The Events table also has a StartDate and EndDate fields to do these comparisons.
Usually in such situations, this would call for a nested for loop construct: for each entry in all events, traverse through each entry in a judge's current assigned list and make the above checks, then color the displayed record accordingly.
Can this be done in Access? If so, can it be done with a nested DAO requests, or is there some other way? Any input would be greatly appreciated. Thanks,
jeff
I have three tables: Events (with pk EventID), Adjudicators (with pk AdjudicatorID, and Assignments (with pk EventID,AdjudicatorID) which tracks a many-to-many relationship. Events can have many judges (adjudicators), and judges can judge many events.
In my form for assigning events to adjudicators, I have two subforms. One is for displaying currently assigned events, and the other is for displaying all events. What I'd like to do is iterate through the all events subform and color-code each event base on if a) event is already assigned, b) event overlaps datewise an already assigned event, or c) event not assigned and doesn't overlap currently assigned event. The Events table also has a StartDate and EndDate fields to do these comparisons.
Usually in such situations, this would call for a nested for loop construct: for each entry in all events, traverse through each entry in a judge's current assigned list and make the above checks, then color the displayed record accordingly.
Can this be done in Access? If so, can it be done with a nested DAO requests, or is there some other way? Any input would be greatly appreciated. Thanks,
jeff