sparks wrote in message <tf********************************@4ax.com> :
I am in a subform on a subform and need to get to a subform on a
subform...LOL
on 2 tabs.
so I have
FORM MAIN
sub1 sub3
subs2 subs4
val1 val2
so to get a value on subs2 for a calc value in subs4
is the correct way in subs4
me.parent.parent which is on form main
me.parent.parent.sub1.form.subs2.form.val1
I can't get this to work and I know its something to do with my
reference to form.
doesn't the form always go after the formname?
thanks big time for help
Jerry
Fortunately, I haven't had the need for such linking;-)
Keep in mind that what is used when referencing, is the
subform control name, which may differ from the form name
as viewed in the database window. It might be that, which
is causing this.
You might want to try the following:
One way of obtaining the correct reference, is by invoking
the expression builder from the controlsource of one of
the controls (val2?), then doubleclick through forms,
loaded forms, main form, sub1, subs2, val1, which
should provide you with the correct reference.
--
Roy-Vidar