access to a variable in a subforms code module

  • Thread starter Thread starter Tieske
  • Start date Start date
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
 
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.....
 
Back
Top