let's say that on the AFTER UPDATE of the sub, you want to popuplate 2 controls on the main with NOW() and USERNAME.
if that is so, you will need:
Code:
sub_afterupdate
me.parent.form.controls("NOWcontrol") = NOW()
me.parent.form.controls("USERNAMEcontrol") = environ("username")
just trying to get you one step closer to your own solution here. you can use the 'parent' property on any subform, anywhere. it is much much easier than messing with objects and form names. e.g. - these two do the same thing:
Code:
me.parent
forms("mainform")
does that help at all?
<edit>
to update a control on the main from UPDATES on the sub:
Code:
me.parent.control = me.updates