ComboBox.Controls 屬性 (Access)ComboBox.Controls property (Access)

會傳回表單、 子表單、 報表或區段控制項集合。Returns the Controls collection of a form, subform, report, or section. 唯讀的 控制項Read-only Controls.

語法Syntax

運算式控制項expression.Controls

_運算式_代表**ComboBox** 物件的變數。expression A variable that represents a ComboBox object.

註解Remarks

使用 控制項 屬性來參照一個表單、 子表單、 報表或區段中的控制項或附加至另一個控制項。Use the Controls property to refer to one of the controls on a form, subform, report, or section within or attached to another control. 例如,第一個程式碼語法會傳回位於 Form1 的控制項數目。For example, the first code syntax returns the number of controls located on Form1. 第二個參照控制項內屬性的名稱。The second references the name of a property within a control.

Forms("Form1").Controls.Count 
 
Forms("Form1").Controls("Textbox1").Properties(5).Name

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.