Move To Next Control

jaydwest

JayW
Local time
Today, 15:29
Joined
Apr 22, 2003
Messages
340
Now that you can't use sendkeys "{Tab}" anymore. What is the best way to move to the next control on the active form from a Global Module.

Thanks for your help.
 
Acesss 2003 with Vista Business
 
Now that you can't use sendkeys "{Tab}" anymore.
You are mistaken. That statement is still in use.
Form code:
Code:
Private Sub Command98_Click()
    TabTimes 2
End Sub
Module code:
Code:
Public Sub TabTimes(intX As Integer)
    Dim intI As Integer
    For intI = 1 To intX
        SendKeys "{Tab}"
    Next intI
End Sub
:D
 
You know that and maybe I know that but my computer sure doesn't know that. In any case I would like to get rid of all the SendKeys in my Applications, so the question is, is there any other way to tab to the next control on a form without using SendKeys.
 
Make sure you don't have an AutoKeys macro which captures the tab.
otherwise, good luck!
 

Users who are viewing this thread

Back
Top Bottom