Control Members (Access)

The Control object represents a control on a form, report, or section, within another control, or attached to another control.

Methods

Name

Description

Dropdown

You can use the Dropdown method to force the list in the specified combo box to drop down.

Move

Moves the specified object to the coordinates specified by the argument values.

Requery

The Requery method updates the data underlying a specified control that's on the active form by requerying the source of data for the control.

SetFocus

The SetFocus method moves the focus to the specified form, the specified control on the active form, or the specified field on the active datasheet.

SizeToFit

You can use the SizeToFit method to size a control so it fits the text or image that it contains.

Undo

You can use the Undo method to reset a control or form when its value has been changed.

Properties

Name

Description

Application

You can use the Application property to access the active Microsoft Access Application object and its related properties. Read-only Application object.

BottomPadding

Gets or sets the amount of space (in inches) between the control and its bottom gridline. Read/write Integer.

Column

You can use the Column property to refer to a specific column, or column and row combination, in a multiple-column combo box or list box. Read-only Variant.

Controls

Returns the Controls collection of a form, subform, report or section. Read-only Controls.

Form

You can use the Form property to refer to a form or to refer to the form associated with a subformcontrol. Read-only Form.

GridlineColor

Gets or sets the color of the gridline for the specified control. Read/write Long.

GridlineStyleBottom

Gets or sets the bottom gridline style of the specified control. Read/write Byte.

GridlineStyleLeft

Gets or sets the width of the bottom gridline for the specified control. Read/write Byte.

GridlineStyleRight

Gets or sets the right gridline style of the specified control. Read/write Byte.

GridlineStyleTop

Gets or sets the top gridline style of the specified control. Read/write Byte.

GridlineWidthBottom

Gets or sets the width of the bottom gridline for the specified control. Read/write Byte.

GridlineWidthLeft

Gets or sets the width of the left gridline for the specified control. Read/write Byte.

GridlineWidthRight

Gets or sets the width of the right gridline for the specified control. Read/write Byte.

GridlineWidthTop

Gets or sets the width of the top gridline for the specified control. Read/write Byte.

HorizontalAnchor

Gets or sets an AcHorizontalAnchor constant that indicates how the control is anchored horizontally within its layout. Read/write.

Hyperlink

You can use the Hyperlink property to return a reference to a Hyperlink object. You can use the Hyperlink property to access the properties and methods of a control's hyperlink. Read-only.

ItemData

The ItemData property returns the data in the bound column for the specified row in a combo box or list box. Read-only Variant.

ItemsSelected

You can use the ItemsSelected property to return a read-only reference to the hidden ItemsSelected collection. This hidden collection can be used to access data in the selected rows of a multiselect list box control.

Layout

Returns the type of layout for the specified control. Read-only AcLayoutType.

LayoutID

Returns the unique identifier for the layout that contains the specified control. Read-only Long.

LeftPadding

Gets or sets the amount of space (in inches) between the control and its left gridline. Read/write Integer.

Name

You can use the Name property to determine the string expression that identifies the name of an object. Read-only String.

Object

You can use the Object property in Visual Basic to return a reference to the ActiveX object that is associated with a linked or embedded OLE object in a control. By using this reference, you can access the properties or invoke the methods of the OLE object. Read-only Object.

ObjectVerbs

You can use the ObjectVerbs property in Visual Basic to determine the list of verbs an OLE object supports. Read-only String.

OldValue

You can use the OldValue property to determine the unedited value of a bound control. Read-only Variant.

Pages

Returns a Pages collection that represents the pages in the specified control that supports tabbed pages (for example, a TabControl object). Read-only.

Parent

Returns the parent object for the specified object. Read-only.

Properties

Returns a reference to a control's Properties collection object. Read-only.

Report

You can use the Report property to refer to a report or to refer to the report associated with a subreport control. Read-only Report.

RightPadding

Gets or sets the amount of space (in inches) between the control and its right gridline. Read/write Integer.

Selected

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

SmartTags

Returns a SmartTags collection that represents the collection of smart tags that have been added to a control. .

TopPadding

Gets or sets the amount of space (in inches) between the control and its top gridline. Read/write Integer.

VerticalAnchor

Gets or sets an AcVerticalAnchor constant that indicates how the specified control is anchored vertically within its layout. Read/write.