I am setting up a bookings system, within this I would like a feature to book dates and times for jobs. This is proving difficult. I need to set up a validation rule to stop double bookings, has anyone got an idea of how I can do this?
The bookings table contains the following fields:
CustomerID
JobID
Date
StartTime
FinishTime
The system must eliminate double bookings so that the same time on same date cannot be entered more then once
E.g. If one record already has 'time start' as 14:00 and 'time finish' as 16:00, 'Date' as 31/03/04, when a new record is being added it should not accept it if you have 31/03/04 as "Date" with a "TimeStart or "TimeFinish" between 14:00 to 16:00.
It should accept it if its on the same date but outside this range, or in this range but on a different date
It should prevent any times from overlapping
If anyone could help in any way it would be massively appreciated
The bookings table contains the following fields:
CustomerID
JobID
Date
StartTime
FinishTime
The system must eliminate double bookings so that the same time on same date cannot be entered more then once
E.g. If one record already has 'time start' as 14:00 and 'time finish' as 16:00, 'Date' as 31/03/04, when a new record is being added it should not accept it if you have 31/03/04 as "Date" with a "TimeStart or "TimeFinish" between 14:00 to 16:00.
It should accept it if its on the same date but outside this range, or in this range but on a different date
It should prevent any times from overlapping
If anyone could help in any way it would be massively appreciated