
Move Between Fields with "Enter" Key
I am not sure, but you can either do this:
Private Sub Control_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then KeyAscii = 8
End Sub
Or:
Private Sub Control_KeyPress(KeyAscii As Integer)
On Error Resume Next
If KeyAscii = 13 Then KeyAscii = 0: SendKeys "{TAB}"
End Sub
<Ryan Faricy>
Quote:
>I want to move to the next control on a form using the "Enter" key as
>well as the "tab" key. How is this done with VB5?
>Pllease e-mail me.
>Thanks,
>Michael Jenkins
>Control Tech Consulting Inc.
>(905) 790-1507
> http://www.*-*-*.com/ ~jenkinsm