I have a Power Apps Application linked to a Sharepoint list called Rental Info. In it are columns such as StartDate EndDate and Bike Choice.
I have a form linked to this database. The Bike Choice field is a dropdown with two values Red Bike and Blue Bike. The Bike Choice is a Choice column. The dropdown is called BikeVal in powerapps. StartDate is called DateValue1 in powerapps and EndDate is called DateValue2.
I want to make sure that when user selects a date that it then checks if the chosen date is already in the Sharepoint list. If the date (and time) is already in there then the bike should not be displayed. I have tried this by using the onchange on the selected date to compare it with the date a bike has been reserved but so far it has not worked. I am fairly new to PowerApps so I might be missing something very obvious.
Is there something wrong with my data model? Should I use lookups in the sharepoint to a list of the bikes? How can I show the available bike on the selected date(and time)?
I appreciate any help and thank you in advance!