Cross Form Accessing of properties of an Object on a User Control



Hello -

I have a user control called xTestControl. It is a class xTestControl.cls
This UserControl is placed on a Form (Form3)

The codeprogram architecture consists of

Forms
Modules
Classes


I am trying to access, from one of the forms in theForms Module, a property
of an object (say the caption property of a command button conrtol) that is
placed on xTestControl,which is on Form3

I can access a control on one form (Form1) from another form (Form2) by the
following type of statement that is placed on Form2

Debug.Print frmForm1.Command1.Caption

but with my problem child contol that resides on a User Conrtol which
resides on a form, I cannot seem to get access the object properties. I get
an undefined variable or object required Error.

To test access, I have tried one at a time on Form2:

Debug.Print Command1.Caption 'TheCommand1 is one of a collecion of
'buttons the
resides on a UserControl named
' xTestsControls
'that has been
placed on Form 1

Debug.Print frmForm1.Command1.Caption

Debug.Print xTestsControls.frmForm1.Comand1.Caption

Debug.Print xTestsControls.ctl.frmForm1.Command1.Caption




What am I doing wrong???
Is there something different about a control that is part of a user control
object which is then placed on a form
that makes it different from a "regular" control that one placed just on a
form and had its properties "read" in a Sub on another form??

Thanks All


.