Controls Property

Microsoft Access Visual Basic

expression.Controls

expression    Required. An expression that returns one of the objects in the Applies To list.

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. For example, the first code syntax below 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
		

The Controls property is available only by using Visual Basic.