access to a variable in a subforms code module

T

Tieske

Hi,

I have a mainform, with a subform. The subform creates an object in a public
variable (defined in the subforms module) in its onload event.

Is there a way to get access to this object from within the code module of
the mainform? or if not, what are suggested workarounds?

many thanks!

Tieske
 
A

Albert D. Kallal

You can go:

msgbox me.MysubFormContorl.Form.NameOfVar

Note that you don't use the name of the sub-form, but are using the name of
the subform control.....

just make sure that the var is defined as public.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top