Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Setting Focus to a tab on Form Activate

Posted on 2004-09-29
9
Medium Priority
?
481 Views
Last Modified: 2008-01-09
How can I set the focus to a tab on a form on the activate command?  Thanks all
0
Comment
Question by:sbornstein2
9 Comments
 
LVL 8

Expert Comment

by:mladenovicz
ID: 12181937
SSTab1.SetFocus
0
 
LVL 19

Expert Comment

by:Shauli
ID: 12181950
If you refer to the SSTAB (Tabed Dialog) then:

Private Sub Form_Activate()
SSTab1.Tab = 1   'or any other number, The number is the tab number you want to set focus on.
End Sub

S
0
 

Author Comment

by:sbornstein2
ID: 12182614
I am using VBA actually and I dont have the tab property.  I have a tab called MultiPage1 and the tab name is Page1.  My options under MultiPage1. are

pages
tabindex
etc.

I tried MultiPage1.TabIndex = 1 but no dice it still goes to another tab.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 19

Expert Comment

by:Shauli
ID: 12182636
I'm guessing here, but try:

Page1.Pages(1)

Where 1 is the tab number.

Let us know.

S
0
 
LVL 19

Expert Comment

by:Shauli
ID: 12182664
Or maybe Page1.Pages = 1

But I'm unfamiliar with that vba tab.

S

0
 

Author Comment

by:sbornstein2
ID: 12183701
No dice.
0
 
LVL 19

Expert Comment

by:Shauli
ID: 12183804
In that case I suggest you ask for refund @ customer support, and replace the question, and this times specifying its VBA and Multipage control. :)

Good luck,

S
0
 
LVL 12

Accepted Solution

by:
jkaios earned 40 total points
ID: 12187367
How about try these other combinations ...

MultiPage1(0).SetFocus
 - or -
MultiPage1.Pages(0).SetFocus
 - or -
MultiPage1.TabIndex = 0
 - or -
MultiPage1.TabIndex(0).SetFocus

Remember that some Collections start with Index = 0, usually "Controls" collections.
0
 

Author Comment

by:sbornstein2
ID: 12190152
The answer is just .Value in VBA.  MultiPage.Value = 1
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

810 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