I want to only patch the data if 'txt_sp_id' (form) is not found in Speaker:sp_id
ForAll(Speaker,
If (sp_id <> Value(txt_sp_id.Text),
Patch(
Speaker,
LookUp(Speaker, sp_id=Speaker[@sp_id]),
{
sp_id: Value(txt_sp_id.Text),
sp_name: txt_sp_name.Text,
sp_email: txt_sp_email.Text
}
)));
So far, I am getting this error: This function cannot operate on the same data source that is used in ForAll.