please try this instead:
If(
Value(StartTimedd.SelectedText.Value) > Value(EndTimedd.SelectedText.Value),
Notify("End Time cannot be less than Start Time", NotificationType.Error),
If(
CountRows(
Filter(
EventBookingSlots,
Date = DatePicker1.SelectedDate,
StartTime = StartTimedd.SelectedText,
EndTime = EndTimedd.SelectedText
)
) > 0,
Notify("Event with the same Date, Start Time, and End Time already exists.", NotificationType.Error),
Patch(
EventBookingSlots,
Defaults(EventBookingSlots),
{
Date: DatePicker1.SelectedDate,
StartTime: StartTimedd.SelectedText,
EndTime: EndTimedd.SelectedText,
Title: DetailsTxt.Text,
EventName: EventnameLbl.Text,
Venue: VenueTxt.Text
}
)
)
)
and this for ur other issue:
Filter(EventBookingSlots, Date = DatePicker1.SelectedDate)
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings