This seems like a basic question, I apologize in advance.
I have a dialog form that needs to delete its own current record when closing IF certain criteria are met.
The data source is a table, the table has 4 currency fields, the table validation rule does not allow ALL 4 of these fields to be zero.
Table validation rule:
Code:
Not ([field1]=0 And [field2]=0 And [field3]=0 And [field4]=0)
That said, if the user attempts to *update* a record such that all 4 fields = 0, that means the record needs to be deleted all together. I attempted to do this in the From_BeforeUpdate event but was unsuccessful, what's the best way to approach this?