I just tried what you have and it returned the correct value. Could the
problem be "SubformName"? This should actually be the name of the control on
the main form that holds the subform, not the name of the subform.
Another possibility may be what you are doing to run this check. If the
subform is dirty then you return to the main form, such as to click a button
on the main form, then the subform changes were saved at that point and the
subform isn't dirty.
--
Wayne Morgan
Microsoft Access MVP
Harry said:
Hi all, How can I reference dirty for a subform? I can use me.dirty for
the current form. I tried Me.SubformName.Form.Dirty and did not work. I am
using Access 2002 on Access 2000 format.