-
OK, anyone know how i can code so i can do the following:
I have a text box that the user enters info in. Instead of making a command button for the user to activate the event procedure, i want the user to press enter, and that event procedure will be activated. How do i do this?? Thanks in advance.
-
Put this on Key_Press event of the Textbox:
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
'Call your procedure here...
End If
End Sub
Regards,
------------------
Serge
Software Developer
[email protected]
[email protected]