Share via


ComboBox.Selected Property (Access)

You can use the Selected property in Visual Basic to determine if an item in a combo box is selected. Read/write Long.

Version Information

Version Added: Access 2007

Syntax

expression .Selected(lRow)

expression A variable that represents a ComboBox object.

Parameters

Name

Required/Optional

Data Type

Description

lRow

Required

Long

The item in the combo box. The first item is represented by a zero (0), the second by a one (1), and so on.

Remarks

The Selected property is a zero-based array that contains the selected state of each item in a combo box.

Setting

Description

True

The combo box item is selected.

False

The combo box item is not selected.

This property is available only at run time.

You can use the Selected property to select items in a combo box by using Visual Basic. For example, the following expression selects the fifth item in the list:

Me!Combobox.Selected(4) = True

See Also

Concepts

ComboBox Object Members

ComboBox Object