Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can fill-up a textbox but the cursor wont JUMP <ribbit> to the 1

Status
Not open for further replies.

Bullfrog

MIS
Sep 21, 1999
7
0
0
US
next textbox. (4 boXes), unless and only if I press TAB. <br>
enter has no effect. lost in the swamp Bullfrog<br>
<br>
THANKS
 
this is normal. enter is reserved for the default button on the form. If you wish to have enter emulate the tab key you will have to write your own routine monitoring the keypress event of each textbox
 
The following code placed into your form's code section<br>
will work for you ...<br>
<br>
Private Sub Form_KeyPress(KeyAscii As Integer)<br>
If KeyAscii = 13 Then<br>
SendKeys &quot;{Tab}&quot;<br>
KeyAscii = 0<br>
End If<br>
End Sub<br>
<br>
Any problems contact me directly ...<br>
<br>
Jim - <A HREF="mailto:jdmcjen@stc.net">jdmcjen@stc.net</A>
 
If you want to use the keypress code in all the boxes and only write the code once, create a textbox control array. That way they all share the same event code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top