M
Mike Thomas
In a form with a subform where the name of the suibform is "PartSub" and the
name of the subform control is "fmPartSub", I am trying to learn how to
determine whether any records in the subform have been changed, deleted,
appended, etc in any way.
I call the code below which is in a Procedure in the parent form. It is
called whenever the user tries to leave the current parent record. The
"Me.dirty" refers to the controls in the parent form and works fine.
The "Form_PartSub.Dirty" pertains to the subform. It always returns False,
even though lines have been added.
This is the code:
If Me.Dirty = True Or Form_PartSub.Dirty Then
'' do something
END IF
Do I need to somehow call a procedure in the subform rather than trying to
query it directly from the parent form? If I put a Proc into the subform
called "ReturnState", how would I call it from the parent?
Many thanks
Mike Thomas
name of the subform control is "fmPartSub", I am trying to learn how to
determine whether any records in the subform have been changed, deleted,
appended, etc in any way.
I call the code below which is in a Procedure in the parent form. It is
called whenever the user tries to leave the current parent record. The
"Me.dirty" refers to the controls in the parent form and works fine.
The "Form_PartSub.Dirty" pertains to the subform. It always returns False,
even though lines have been added.
This is the code:
If Me.Dirty = True Or Form_PartSub.Dirty Then
'' do something
END IF
Do I need to somehow call a procedure in the subform rather than trying to
query it directly from the parent form? If I put a Proc into the subform
called "ReturnState", how would I call it from the parent?
Many thanks
Mike Thomas