Solved

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

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

791 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