Hello, I posted this earlier and marked it as resolved, however it's actually not working, "Network error", Field "KeyColumn" is required.
ForAll(
GalleryNewSchedule.AllItems,
Patch(
MyTable,
If(
IsBlank(
LookUp(
MyTable,
KeyColumn = NameIndexTextBox
)
),
Defaults(MyTable),
{
KeyColumn: NameIndexTextBox,
Area: Area,
ScheduleDate: DateValue(ScheduleDate),
Name: Name,
Job: Job,
DateTimeRecordAdded: Now(),
Shift: Shift,
JobAbbr: JobAbbr,
CreatedByUser: User().Email
}
)
)
)
;
Oddly, it will update a record if the name I have selected is already in the SQL table, but when I choose a name that isn't in there yet it does not work.