R
riccifs
Hi to everyone in the N.G.
I'am looking for a way to automatically cause the dropdown list of a
Combobox when a key is pressed but this key shuold be the first
character of the combo box entry. In other word, I 'd like to realize
this kind of effect:
when the user rich the combobox and start to typing, the list sholud
dropdown ''only'' if the item in the list is partially autocompleted,
(the first or the first two words).
At moment my code is at this point:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii > 31 Then
Screen.ActiveControl.Dropdown
End If
End Sub
How can I do that? I will great appreciate to everyone will give to me
an hand!
Thanks a lot,
Stefano.
I'am looking for a way to automatically cause the dropdown list of a
Combobox when a key is pressed but this key shuold be the first
character of the combo box entry. In other word, I 'd like to realize
this kind of effect:
when the user rich the combobox and start to typing, the list sholud
dropdown ''only'' if the item in the list is partially autocompleted,
(the first or the first two words).
At moment my code is at this point:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii > 31 Then
Screen.ActiveControl.Dropdown
End If
End Sub
How can I do that? I will great appreciate to everyone will give to me
an hand!
Thanks a lot,
Stefano.