Miranda said:
hi,
is there a way to scroll through the values in a combo box with the
arrow keys. so if i tab to this combobox i can just use the down
arrow to find a value?
You can use the down-arrow key, but only after the combo box has been
"dropped down." Pressing the F4 key when the combo box has the focus
will drop it down. If you want, you can use code in its GotFocus event
to make it drop down automatically; for example:
Private Sub cboMyCombo_GotFocus()
Me.cboMyCombo.Dropdown
End Sub
I personally don't like combo boxes to drop down automatically as I tab
through them, but you can try it and make your own decision.
Note: it's possible to detect whether a combo box is in its
dropped-down state or not, but it's quite complicated. So while
theoretically you could trap the down-arrow keypress and use it to drop
down the combo box if it isn't already dropped down, I don't know if you
want to pursue that course.