How to activate Enter Key on forms 
Author Message
 How to activate Enter Key on forms

I have created a form and users enter information in it.
After each field is entered, user has to click on tab key
to go to next field.  Is there any way that user just enter
information and hit return key and cursor jump to next
field?

I also would like to know, how to clear the screen before
I display my form.

Thanks.



Sat, 31 Jan 2004 04:01:40 GMT  
 How to activate Enter Key on forms
try something like this:
-----------------------------------

Private Sub textbox_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then           'capture "enter" keypress
        KeyAscii = 0                     'cancel 'beep'
        SendKeys "{tab}", True    'change to a "tab"
    End If
End Sub

-----------------------------------

Quote:

> I have created a form and users enter information in it.
> After each field is entered, user has to click on tab key
> to go to next field.  Is there any way that user just enter
> information and hit return key and cursor jump to next
> field?

> I also would like to know, how to clear the screen before
> I display my form.

> Thanks.



Sat, 31 Jan 2004 05:35:32 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How To activate a button by pressing the enter key

2. How change function key TAB on key ENTER in VB form

3. enter ctrl+enter key into a text box

4. Locking the Enter Key in a Form or Reassigning

5. Enter Key and User Forms

6. Damsel Needs Help With ENTER Key in Forms

7. Enter Key & Form Protection

8. How do I get the enter key to automatically tab to the next form field

9. Forms - Text Fields and the Enter Key

10. Disabling Enter key in a Form

11. trapping enter key in web form??

12. Use of Enter-Key in a form

 

 
Powered by phpBB® Forum Software