Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ho to reference a textbox in a tab control? 2

Status
Not open for further replies.

steve728

Programmer
Mar 16, 2003
536
0
0
US
I inserted a tab control in a form. I want to assign a value to a control on page1. Normally, in a regular form's On_Load event I use - Me.TxtName.value = "Steve"

How do I do the same for a tab control page? Something like- Me.Page1.TxtName.value = "Steve"

Please help.

Steve
Access 2000/2002
 
If you're code is in the main form refer to it like it was part of the main form.
me.txtName.value="Steve"
To change properties of the tabs use me.page1.enabled=false, etc.

HTH,
Eric
 
It should be the same syntax
me.TxtName="Steve"
 
You're absolutely right! Darn it! I could have sworn that it didn't work when I first tried it. Oh well, Onward Ho!

Thank you for your really quick replies! YOU GET A STAR!

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top