How do I disable a form tab using VB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

On a form with tabs, Tab1 and Tab2, with both enabled for editing.

If I set a value from 1 to 2 somewhere, how do I get Tab2 to disable to read
only state? It is set to open the form from a VB command.
 
Nitestalkernet said:
On a form with tabs, Tab1 and Tab2, with both enabled for editing.

If I set a value from 1 to 2 somewhere, how do I get Tab2 to disable
to read only state? It is set to open the form from a VB command.

If you set the Enabled property of the Tab Page to No (false) then all controls
on the page will be disabled.

If you prefer Locked to Disabled then you would have to loop through all the
controls on the Tab Page instead.
 
Back
Top