Hi Chris-D, i made a sharepoint list with datetime column and Lock column true/false, we want to lock a month who meens that if date is 01-10-2023 and locked is true it should no be able to selcet the datepicker on App as the month is locked, i have try it with different code but it does not work.
The datepicker has direct connection to SharePoint when the users register the time on my other sharepointlist.
the code i have been tryin is this:
If( IsBlank( LookUp( MÃ¥neder, DateValue(Dato, "[$-da-DK]dd-MM-yyyy") = DateValue(Text(DatePicker1.SelectedDate, "dd-MM-yyyy"), "dd-MM-yyyy") && Lock = true ) ), // Handle when the date is in a locked month Notify("This date is locked.", NotificationType.Error).