Table of contents
TOC
Collapse the table of content
Expand the table of content

Control.Dropdown Method (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

You can use the Dropdown method to force the list in the specified combo box to drop down.

Syntax

expression. Dropdown

expression A variable that represents a Control object.

Return Value

Nothing

Remarks

For example, you can use this method to cause a combo box listing vendor codes to drop down when the vendor code control receives the focus during data entry.

If the specified combo box control doesn't have the focus, an error occurs. The use of 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 SupplierID to drop down when it receives the focus.

Private Sub SupplierID_GotFocus() 
 Me!SupplierID.Dropdown 
End Sub

See also

Concepts

Control Object

© 2017 Microsoft