Solved

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

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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.
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

707 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