Hi all,
I am trying to patch to all records where the name is "Ross" and the Week No. is that which the user has typed. I believe I need to use the "for all" function but I can't seem to make it work. Here is my working code which patches to a singular record but fails to patch to all records meeting the conditions:
If(
IsBlank(RossWeekInput.Text),
Notify("Please fill in a week number.", NotificationType.Error, 2000),
If(
IsBlank(
LookUp(
Times,
'Week No.' = Value(RossWeekInput.Text) && Name = "Ross"
)
),
Notify("Error. No records exist for that week.", NotificationType.Error, 2000),
Patch(
Times,
LookUp(
Times,
'Week No.' = Value(RossWeekInput.Text) && Name = "Ross"
),
{
'Pay Status': "PAID"
}
);
Notify("Record updated successfully.", NotificationType.Success, 2000)
)
);
Reset(Checkbox1)
Any help appreciated thanks!

Report
All responses (
Answers (