Please I need assistance with my guest room reservation application. I want to prevent users from booking or reserving rooms during time slots that have already been approved. This is my code below. I am working with two datasources; Rooms(sharepoint list containing the list of rooms which is filtered based on the selected location) and colBooking(Which is a collection of a sharepoint list called Reservations containing the start and end datetime and also the approval status). What am i doing wrong here please?
Filter(
Rooms,
Location.Value = varSelectedLocation &&
IsBlank(
LookUp(
colBookings,
Room.Value = Title &&
'Approval Status'.Value = "Approved" &&
!(DateTimeValue(Text(DatePickerStart.Value) & " " & Text(TimeValue1.Selected.Value) & ":" & Text(MinuteValue1.Selected.Value) & ":00") >= End ||
DateTimeValue(Text(DatePickerEnd.Value) & " " & Text(TimeValue2.Selected.Value) & ":" & Text(MinuteValue2.Selected.Value) & ":00") <= Start)
)
)
).Title