Solved

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

Posted on 2003-10-27
3
291 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
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 33

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 33

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How Can I Grab This Information off a PDF Form 23 48
Programmer 14 48
Ms Access VBA Variables 6 26
Migrating Macro Menu’s From Access 2003 to Access 2013 2 29
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

770 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