Validation rule - data must 'not' be between two dates
I have a data entry form based on a table where you can book in dates for jobs. One of the fields is called 'JobDate' and another 'StaffID' (which is related to tblStaff)
I have another table called tblStaff which has fields StaffID, HolidaysStart, HolidaysEnd
I want a validation rule that does not accept a record that has a Job Date entered for a Staff that is between HolidaysStart and HolidaysEnd.
The problem is HolidaysStart and HolidaysEnd are not on the same form as Job Date, so is it possible to do this by putting a validation rule in the control for the JobDate field?
I have a data entry form based on a table where you can book in dates for jobs. One of the fields is called 'JobDate' and another 'StaffID' (which is related to tblStaff)
I have another table called tblStaff which has fields StaffID, HolidaysStart, HolidaysEnd
I want a validation rule that does not accept a record that has a Job Date entered for a Staff that is between HolidaysStart and HolidaysEnd.
The problem is HolidaysStart and HolidaysEnd are not on the same form as Job Date, so is it possible to do this by putting a validation rule in the control for the JobDate field?
Last edited: