> I fear I'm missing something simple but I can't figure out why this code is failing in the context of Active 4D:
> ALL RECORDS([Staff])
> READ WRITE([Staff])
> APPLY TO SELECTION([Staff];[Staff]isPrimaryProvider:=True)
Yes, you are missing something simple. Consulting the documentation for the list of supported 4D commands reveals the cause; the bottom of page 244 reveals the solution.