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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use Enter Key to select list box item

Status
Not open for further replies.

seke

Programmer
Nov 30, 2002
14
PT
Access XP

A form opens with a list box. I use up, down arrow keys to select an item from the list. When item highlighted in list I wish to select the item with the ENTER key, which will send this item to a second form and close the list box form.

The aim is not to use Click, Dbl Click or mouse at all.

Question

How do I use the ENTER key to carry out the above?

Thanks in advance for any help
 
Take a look at the KeyPress event

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top