Combo dropdown

irade92

Registered User.
Local time
Today, 07:25
Joined
Dec 26, 2010
Messages
229
I use this code for combo dropdown, but from time to time its jumps up and down and cannot be controlled...Is this code ok or should be changeed...
Thanks..

Private Sub cboNAME_KeyDown(KeyCode As Integer, Shift As Integer)
Me.cboNAME.Dropdown
End Sub
 
KeyDown fires for every keystroke, use the GotFocus event instead.

Private Sub cboNAME_GotFocus()
Me.cboNAME.Dropdown
End Sub

JR
 
Try to do it in;
Sub cboName_GotFocus
 
KeyDown fires for every keystroke, use the GotFocus event instead.

Private Sub cboNAME_GotFocus()
Me.cboNAME.Dropdown
End Sub

JR

Thanks a lot and God bless you
 

Users who are viewing this thread

Back
Top Bottom