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 / December 2006

Tip: Looking for answers? Try searching our database.

Find out which page is selected on a Tab Control ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Beertrix - 06 Dec 2006 01:25 GMT
I'm trying to find out from VB which page is currently selected on a Tab
Control. I need to requery lists, etc. on each tab control page when a
different item is selected on the main form that contains the tab control. I
want to therefore detect which page on the tab control is ccurently selected
then just requery what I need on the selected page.

Can anyone help ?
Rick Brandt - 06 Dec 2006 01:30 GMT
> I'm trying to find out from VB which page is currently selected on a Tab
> Control. I need to requery lists, etc. on each tab control page when a
[quoted text clipped - 3 lines]
>
> Can anyone help ?

Me!TabControlName.Value

Will be equal to the index of the currently selected TabPage.  By default zero
would be the first page, 1 the second, etc..

Signature

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

Beertrix - 06 Dec 2006 05:27 GMT
Thanks Rick.

The documentation on Tabs is quite poor I think.

> > I'm trying to find out from VB which page is currently selected on a Tab
> > Control. I need to requery lists, etc. on each tab control page when a
[quoted text clipped - 8 lines]
> Will be equal to the index of the currently selected TabPage.  By default zero
> would be the first page, 1 the second, etc..
 
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.