Simulate Event After Enter Key is hit?

wrek

Registered User.
Local time
Today, 22:53
Joined
Jun 14, 2001
Messages
88
I have a form with 3 textboxes. Data in any one of them will be used in a query which is run currently through a command button.

I want to run the query after the user hits Enter in the textbox after their data.

I could use the 'after_Update' event but this activates when focus is lost from the text box, or on Tabs etc - not the intended function.

Any way to simulate this? (trap the chr of the Key?)

tx
 
Search for the keyword "keypress" or "keydown". I have post code to trap a specific key.
 

Users who are viewing this thread

Back
Top Bottom