On hit enter key, run button on click code

  • Thread starter Thread starter BlueWolverine
  • Start date Start date
B

BlueWolverine

Hey,
MS Access 2003 on XP PRO.

I have a search panel. It has a few fields to search from. I have a button
that runs the search.

I would like the act of hitting the enter key on the keyboard while in a
search parameter field to execute the code behind the button, instead of
merely moving the cursor to the next field.

Anyway to do that?
Thanks
 
Is there any way to aim it? The default thing works but, not as adaptably as
I'd hope.

Is there anyway to make a certain field aim to a certain button? Such that
hitting enter in field A runs the code for Button A while hitting enter in
field B runs the code for button B?

Thanks though, your method will work well enough.
 
Back
Top