Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2006

Tip: Looking for answers? Try searching our database.

How do I disable a form tab using VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nitestalkernet - 26 Sep 2006 05:39 GMT
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.
Rick Brandt - 26 Sep 2006 12:22 GMT
> 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.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.