Combo Bow to drop down on selection (1 Viewer)

mtagliaferri

Registered User.
Local time
Today, 10:50
Joined
Jul 16, 2006
Messages
519
I have placed the following code in either the On Change and Got Focus event for a Combo Box as I would like to automatically dropdown the Combo Box list to display available values when the box is selected directly or through the tab function rather than having to click on the down arrow, but is not working. :confused:

Code:
Private Sub EventType_GotFocus()
    cboEventType.Dropdown
End Sub
 

Gasman

Enthusiastic Amateur
Local time
Today, 10:50
Joined
Sep 21, 2011
Messages
14,328
Would that be because your combo appears to be called EventType?
Also try
Code:
Me.EventType.dropdown
or
Code:
Me!EventType.dropdown

If you put
Code:
Option Explicit
at the top of your code, Access would have told you this control did not exist.

HTH
 

JHB

Have been here a while
Local time
Today, 11:50
Joined
Jun 17, 2012
Messages
7,732
You call it different names:
EventType
cboEventType
 

Users who are viewing this thread

Top Bottom