On KeyPress

s15199d

Registered User.
Local time
Today, 18:13
Joined
Jan 4, 2005
Messages
10
I'm trying to use the KeyPress event so that when someone keys in there ID and password and clicks ENTER or TAB (the keys on your keyboard) it will submit their input for verification.

I don't want my user to have to click the button at the bottom of the page if they don't want to.

Here's the code i tried:

Private Sub Text2_KeyPress(KeyAscii As Integer)
Call Enter_Click
End Sub

I get this error msg:
"This action can't be carried out while process a form or report event."

Thanks in advance!
 
Last edited:
...

I think what you want to do is....

if KeyAscii = 13 then

end if

call your actions, weather set focus or closing and opening forms....
 

Users who are viewing this thread

Back
Top Bottom