Applies To ActiveX control, Bound Object Frame control, Chart control, Check Box control, Combo Box control, Command Button control, Image control, Label control, Line control, List Box control, Option Button control, Option Group control, Page, Page Break control, Rectangle control, Subform/Subreport control, Tab control, Text Box control, Toggle Button control, Unbound Object Frame control.
Description
You can use the ControlType property in Visual Basic to determine the type of a control on a form or report.
Setting
The ControlType property setting is an intrinsic constant that specifies the control type.
Constant | Control |
acLabel | Label |
acRectangle | Rectangle |
acLine | Line |
acImage | Image |
acCommandButton | Command button |
acOptionButton | Option button |
acCheckBox | Check box |
acOptionGroup | Option group |
acBoundObjectFrame | Bound object frame |
acTextBox | Text box |
acListBox | List box |
acComboBox | Combo box |
acSubform | Subform/subreport |
acObjectFrame | Unbound object frame or chart |
acPageBreak | Page break |
acPage | Page |
acCustomControl | ActiveX (custom) control |
acToggleButton | Toggle button |
acTabCtl | Tab |
See Also CreateControl, CreateReportControl functions.
Example See the AllowAdditions property example.