Tab Control - Disable Tabs

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
Back
Top