How do I disable a form tab using VB

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.
 
R

Rick Brandt

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.
 

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