On hit enter key, run button on click code

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
 
B

BlueWolverine

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top