Using keys to gain access to combo boxes

I

IT

Hello,

How is it possible to allow a user to simply select the down arrow when the
focus is in a combobox to display its contents. I can do this at present by
pressing alt and then the down arrow but ideally would like to just press
the down arrow key.

Cheers
 
J

John Vinson

Hello,

How is it possible to allow a user to simply select the down arrow when the
focus is in a combobox to display its contents. I can do this at present by
pressing alt and then the down arrow but ideally would like to just press
the down arrow key.

Cheers

You can set the Form's KeyPreview property to Yes and then put code in
the combo box's KeyDown event. As a rule, I prefer to use the
Autocomplete property of combos anyway. If you tab into the combo box
and type the first two or three letters of its first visible column,
the combo will navigate to the first record with those values. Will
this help in your case?
 
L

loadhigh

Use combobox 's dropdwon method.

When combobox (for example named Combo5) got focus,you can script code like
those below:

Private Sub Combo5_GotFocus()

Combo5.Dropdown

End Sub
 

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

Similar Threads

Combo box 0
Check to see if a key is being held down 1
combo box 1
Combo Box not firing OnChange Event 5
Using JAWS 11 with Access 0
Combo Box Issue 1
First entry in combo 7
list or combo box 0

Top