re-attaching a control to a different parent programmatically

V

vanleurth

Hello,

I would like to know if it is possible to connect a control that has a tab
control as parent to the form that is the parent of the tab control.

How do I this ?

Thanks,

V.
 
R

RuralGuy

Hello,

I would like to know if it is possible to connect a control that has a tab
control as parent to the form that is the parent of the tab control.

How do I this ?

Thanks,

V.

To set the record straight, a tab control is not a parent of anything. It
simply expands the geography of the form on which it sits. All of the controls
on it must be unique to the form on which the tab control sits.
_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
 
V

vanleurth via AccessMonster.com

Thank you for your prompt reply RuralGuy,

I'm a little troubled here. Perhaps, I need more details but;
If I define a control (lets say a button) inside a page of a tab control and
then run a watch on it or the following instruction I get;

Debug.Print button.parent.name

the result is the pagename string.
If I do the same for the page;

Debug.Print. page.parent.name

I get the tab name.

????

I'm confused. Any more feedback is appretiated. Thank you in advance,
V.

[quoted text clipped - 6 lines]

To set the record straight, a tab control is not a parent of anything. It
simply expands the geography of the form on which it sits. All of the controls
on it must be unique to the form on which the tab control sits.
_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
 
R

RuralGuy

Thank you for your prompt reply RuralGuy,

I'm a little troubled here. Perhaps, I need more details but;
If I define a control (lets say a button) inside a page of a tab control and
then run a watch on it or the following instruction I get;

Debug.Print button.parent.name

the result is the pagename string.
If I do the same for the page;

Debug.Print. page.parent.name

I get the tab name.

????

I'm confused. Any more feedback is appretiated. Thank you in advance,
V.

The reference to a TextBox on a tab control through the Forms collection is:
Forms!FormName!TextBoxName

The tab control does *not* get involved at all.

Maybe if you take another shot at what you want to achieve, we can provide some
suggestions.
_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
 
Top