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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coding for a specific page in a tab control.

Status
Not open for further replies.

jasonmac

Programmer
Nov 14, 2002
175
US
Hi everyone. I have a form in access 97 that uses a tab control. The tab control has several pages. For security in certain instances I need to set the "enable" property for one of the pages to false. I'm not sure how to tell access what page I want. It's a syntax problem. I can get as far as me!tabctrl!............

Can anyone help?

Thanks in advance,
Jason
 
Hi, try this...

TabCtl0.Pages(0).Enabled = False

The 0 is the page number you want to work on (0 is the first 1 then second, etc...)

There are two ways to write error-free programs; only the third one works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top