|
Question : Using 'Dirty' on a subform
|
|
I have a form (frmEncounter) with a subform subEncounter. data from subEncounter is saved to the table Encounter
I want to use 'Dirty' to determine if there has been any changes to the data on the subform. If so, I want to 'undo' these changes.
How can I do this? Not sure of the syntax nor of where to place this code? on the form or sumform.
|
|
Answer : Using 'Dirty' on a subform
|
|
you can place the code on the Sumform, for example "before update" of the subform, I think this should do it:
if me.dirty=true then cancel = true endif
jaffer
|
|
|