SubForm.LabelX property (Access)

The LabelX property (along with the LabelY property) specifies the placement of the label for a new control. Read/write Integer.

Syntax

expression.LabelX

expression A variable that represents a SubForm object.

Remarks

If the orientation is left to right for a form or report, LabelX and LabelY behavior matches standard Microsoft Access left-to-right orientation. For more information about orientation, see the Orientation property.

If the orientation is right to left, the origin of the coordinate system for LabelX and LabelY is the upper-right corner of the attached control. A negative number for LabelX places the label to the right of the control. A negative number for LabelY places the label above the control.

For General and Right alignment when the orientation is right to left, LabelX and LabelY specify the location of the upper-right corner of the label relative to the upper-right corner of the label's attached control.

For Left and Center alignment, LabelX and LabelY specify the location of the upper-left corner and top center, respectively, of the label relative to the upper-right corner of the label's attached control.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.