varunvithalani
Registered User.
- Local time
- Tomorrow, 03:24
- Joined
- May 11, 2010
- Messages
- 19
Hello,
I have a table called 'DateID' which has 2 important fields 'Date' and 'Duty'.
The date can be set to any value thereby having multiple instances of the same date.
For instance, the entries are,
Date | Duty | Dept
1 jan-10| Person1 | A
2 jan-10| Person2 | B
2 jan-10| Person3 | C
3 jan-10| Person2 | B
3 jan-10| Person2 | A
Assume, that I have made the above entries using a form.
My Task: In the After Update event of the 'Duty' field, I need to pop a message box IF, For the same dates the same person has been allotted in the duty field.
Thus, in this case, My message box should alarm me that I am allotting the same person for same day for 2 different departments which will create a problem.
I know this has something to do with queries, but I do not have any strategies to go about this.
Kindly help me with this issue if possible.
Thanks.
I have a table called 'DateID' which has 2 important fields 'Date' and 'Duty'.
The date can be set to any value thereby having multiple instances of the same date.
For instance, the entries are,
Date | Duty | Dept
1 jan-10| Person1 | A
2 jan-10| Person2 | B
2 jan-10| Person3 | C
3 jan-10| Person2 | B
3 jan-10| Person2 | A
Assume, that I have made the above entries using a form.
My Task: In the After Update event of the 'Duty' field, I need to pop a message box IF, For the same dates the same person has been allotted in the duty field.
Thus, in this case, My message box should alarm me that I am allotting the same person for same day for 2 different departments which will create a problem.
I know this has something to do with queries, but I do not have any strategies to go about this.
Kindly help me with this issue if possible.
Thanks.
Last edited: