Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to make a list box selection with ENTER?

Status
Not open for further replies.

oystercracker

Technical User
Jun 11, 2001
13
US
I would like for the user not to use the mouse to click a selection from a list box. Uing the down arrow gets to the selection but then I can't see how to activate it nicely without leaving the keyboard. Ideally using the ENTER key would work just fine. Any ideas would be greatly appreciated.
 
You can move cursor on listbox by using arrays keys.
Select = <Enter> or <Tab>.

For set focus of form control you can include symbol & in control's label e.g.:

1) &MyListbox name
On screen label looks as: MyListbox name (letter after & is underlined)

Move focus to listbox you can by pushing <Alt>+<M>

2) My&Listbox name
On screen label looks as: MyListbox name

Move focus to listbox you can by pushing <Alt>+<L>

Aivars



 
Thanks for the info about using Alt key labelling. I didn't know you could do that in Access. But what I really was asking is how to use a user-invoked listbox event, other than Click/2click . The user may just be browsing through possible selections, so I want an event that means the user really wants the selection. I expect KEYPRESS might qualify, but I don't know how to use it.
 
Once you're on the one you want press the SPACEBAR to select. Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top