Solved

Set focus to first control on SSTab control

Posted on 2002-04-30
3
357 Views
Last Modified: 2012-06-27
How do I set focus to the first control on each tab of an SSTab control as I click from one tab to another. There is only click event of the SSTab

Svetlana2k
0
Comment
Question by:svetlana2k
[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
3 Comments
 
LVL 1

Expert Comment

by:manno
ID: 6979986
The Tab property tells you which Tab they just clicked.

Also the Click event tells you which one they left.

You could assign the Tab number to the Tag property of the required 'top left' controls and cycle through.
0
 
LVL 5

Accepted Solution

by:
hafeezmca earned 50 total points
ID: 6980000
Hello svetlana.
  Here is the solution for ur query.
 
Private Sub SSTab1_Click(PreviousTab As Integer)
If SSTab1.Tab = 0 Then
    itemname.SetFocus
End If
'similary repeat the above procedure for as many          
 'tabs using a nested if loop.
End Sub
0
 

Author Comment

by:svetlana2k
ID: 6980083
Thank You

Svetlana2k
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Validating VB6 Function 19 68
MS Access Search and Replace Using VBA 6 92
Help me. 3 71
Set WorkSheet  not Working 9 52
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

730 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