Patch('Global Out Of Hours Tables',Defaults('Global Out Of Hours Tables'),(Date_Time':DateTime(Year(DateValue1.SelectedDate),
Month(DateValue1.SelectedDate),
Day(DateValue1.SelectedDate),
Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value)))
This the response I get from Co-Pilot:
The expression was intended to patch a new record into the 'Global Out Of Hours Tables' table with the date, month, day, hour, and minute values extracted from the DateValue1, HourValue1, and MinuteValue1 controls.
However, there are multiple errors in the expression such as missing operators, incorrect syntax, unrecognized variables, and invalid arguments for the Value function and Patch function.
Its also saying it does not like "DateValue1" Should I be replacing this with something? (Apologies for the noob questions)
It was also expecting something here