FLINTSTONE
New Member
- Joined
- Apr 14, 2003
- Messages
- 6
Currently the Access Database (its a bookings system) includes "Date", "TimeStart" and "TimeFinish" fields. When a record is added, these need filling in
Is there a validation rule so that prevents anyone from double booking on the same date AND time on any given day/time?
For example if one record already has 'time start' as 14:00 and 'time finish' as 16:00, 'Date' as 19/03/04, when a new record is being added it should not accept it if you have 19/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
Also how do you make it so that the time entered in "TimeFinish" must be later than the time entered in "TimeStart" or else it won't be accepted?
Also how do you make it so that the database will only allow weekdays dates to be entered in the "Date" field and not accept any dates that are on a Saturday or Sunday?
Is there a validation rule so that prevents anyone from double booking on the same date AND time on any given day/time?
For example if one record already has 'time start' as 14:00 and 'time finish' as 16:00, 'Date' as 19/03/04, when a new record is being added it should not accept it if you have 19/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
Also how do you make it so that the time entered in "TimeFinish" must be later than the time entered in "TimeStart" or else it won't be accepted?
Also how do you make it so that the database will only allow weekdays dates to be entered in the "Date" field and not accept any dates that are on a Saturday or Sunday?