It seems logical to reference a control that is contained within a tab control by including the name of the tab control.
However, from many frustrating error messages, it appears that the correct way of referencing a tab control is to omit the name of the tab control.
e.g
Main form is called [color blue]frmMain[/color]
Tab control on main form is called [color blue]tab1 [/color](Imaginative name!)
Target control on tab control is called [color blue] txtExample[/color]
So it seems logical to believe the reference to the control would be:
[color blue]
[Forms]![frmMain]![tab1]![txtExample]
[/color]
However, this will result in an error message.
So, the correct reference for this is:
[color blue]
[Forms]![frmMain]![txtExample]
[/color]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.