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 / Forms Programming / January 2005

Tip: Looking for answers? Try searching our database.

Change tab control page programmatically

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RipperT - 27 Jan 2005 21:49 GMT
Hi,
Can anyone show me the correct syntax for changing a tab control to a
specific tab in response to a button's on_click event? The button is on a
separate form from the form that contains the tab control.

Many thanx,

Ripper T
Sandra Daigle - 27 Jan 2005 22:05 GMT
You set the value of the tabcontrol to be the index of the page you want.
Note that the pageindex starts with 0 so the following will make the 2nd
page the current one:

me.MyTabCtl=1

Also, consider using the the name of the page itself to indirectly specify
the page index. Since page names rarely change but the order might if you
add something (or haven't finished designing the page). The following would
make the page named "pgOrders" the current page (regardless of the actual
index of pgOrders)

Me.MyTabCtl = me.MyTabCtl.Pages("pgOrders").PageIndex

Signature

Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.

> Hi,
> Can anyone show me the correct syntax for changing a tab control to a
[quoted text clipped - 4 lines]
>
> Ripper T
 
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.