Tab Control - Disable Tabs

G

Guest

With Access 2002/2000 and the Tab Control that ships with Access, how can I
disable the individual tabs? I thought by setting the .Enabled property to
False, would prevent a user from clicking on it? Instead, with this property
set to False, user is able to click on each tab, however, any controls on the
Tab is Disabled. How can I get it so that the user can't even click on a Tab?
 
R

Rick Brandt

Tony_VBACoder said:
With Access 2002/2000 and the Tab Control that ships with Access, how can I
disable the individual tabs? I thought by setting the .Enabled property to
False, would prevent a user from clicking on it? Instead, with this property
set to False, user is able to click on each tab, however, any controls on the
Tab is Disabled. How can I get it so that the user can't even click on a
Tab?

You would have to either hide it or use code in the change event that
immediately changed focus back to the page they were on before they
attempted to go to the "disabled" page. That might raise questions though
since you can't "gray out" the caption to provide a visual clue that the
page is not available. I suppose you could change the caption in some
manner that conveyed the idea though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top