Originally posted by NeoPa
The criteria is incomplete. A given time interval overlaps with an existing interval if
- [Start] or [End] of given interval is between [Start] and [End] of an existing one
- both [Start] or [End] of given interval are outside [Start] and [End] of an existing one
Because of the specific situation - time bookings are repetitive in a given date interval, the same criteria has to be applied on date and on time interval.
And sure [Location] and [Building] fields should be the same too.
So the whole criteria for overlapping records will look like
(daterange overlapps) AND (timerange overlaps) AND ([Location] is the same) AND ([Building] is the same)
Regards,
Fish
Comment