subform referral question

HotFrost

Registered User.
Local time
Today, 10:50
Joined
Jul 22, 2004
Messages
12
hi guys,

I have a form, form has a subform, the subform has a control..
if i use the structure:
a=Forms(strFormName).Controls(strControlName).value with the form and the control on it, where strFormName and strControlName - strings describing the form's and control's name - it works fine...BUT...

What if i want to get to subform and subform's control? What structure should i use?
a=Forms(strFormName).Controls(strControlName).value - this won't work,
because the subform's name is actual Control's Name.

But i need to get to that control on that subform...

Any hints will be appreciated..
 
a=Forms(strFormName).Controls(subFormName).form!Controls(strControlName).value

???
ken
 
Thanks!

Ken..you are a genius..

It works..just had to modify it a little bit..thanks for the hint..


testdate = Forms(str1).Controls(str2).Controls(str3)
 

Users who are viewing this thread

Back
Top Bottom