Solved

(MS ACCESS 2K) tab control navigating from one tab to another

Posted on 2003-10-27
3
288 Views
Last Modified: 2009-12-16
This should be simple, but it's killin me: I have a form (frmTabAll) with a tab control (TC) and  5 tabs (tabMenu,tabsub,tabAttend,tabGeneral and tabWell). I need for the application to open on tabMenu which will a button (button1). Onclick of button1, I need to go to tabSub which has button2 and onclick of button2 will go to tabAttend, etc.
0
Comment
Question by:howcheat
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Jeremyw earned 500 total points
Comment Utility
1 - Go to Tools-Startup and set Display Form/Page: to frmTabAll

2.  In the On_Click of button1 on tabMenu put the following
Private Sub button1_Click()
    tabSub.SetFocus
End Sub

3.  In the On_Click of button2 on tabSub put the following
Private Sub button_Click()
    tabAttend.SetFocus
End Sub

etc.

Hope this helps.

Jeremy
0
 
LVL 33

Expert Comment

by:Mike Eghtebas
Comment Utility
Why you are not using OnChange event of tab control?  

For whatever reason, if you are using bottons, in OnClick event of respective buttons use:

TC.Value=0 'for tabMenu
TC.Value=1 'for tabsub
TC.Value=2 'for tabAttend
TC.Value=3 'for tabGeneral
TC.Value=4 'for tabWell

Mike
0
 
LVL 33

Expert Comment

by:Mike Eghtebas
Comment Utility
BTW, to get to OnChange event of tab control, while in design view, select top right corner of thr tab control (not the tabs) to see this event on the property shee.

Mike
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now