Dropdown Method

Applies To

Combo Box Control.

Description

You can use the Dropdown method to force the list in the specified combo box to drop down. For example, you can use this method to cause a combo box listing vendor codes to drop down when the vendor code field receives the focus during data entry.

Syntax

combobox.Dropdown

The Dropdown method uses the following argument.

Argument Description
combobox A combo box control on a form.


Remarks

If the specified combo box control does not have the focus, an error occurs. Using this method is identical to pressing the F4 key when the control has the focus.

Example

The following example shows how you can use the Dropdown method within the GotFocus event procedure to force a combo box named Employees to drop down when it receives the focus.


Private Sub Employees_GotFocus()
    Me!Employees.DropdownSub