?
Solved

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

Posted on 2003-10-27
3
Medium Priority
?
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Jeremyw earned 2000 total points
ID: 9631494
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 34

Expert Comment

by:Mike Eghtebas
ID: 9631510
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 34

Expert Comment

by:Mike Eghtebas
ID: 9631516
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

800 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