다음을 통해 공유


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

추가된 버전: Access 2007

Syntax

.Selected(lRow)

A variable that represents a ComboBox object.

Parameters

Name

Required/Optional

Data Type

Description

lRow

필수

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

참고 항목

개념

ComboBox Object Members

ComboBox Object