Share via


BottomMargin Property [Access 2003 VBA Language Reference]

BottomMargin property as it applies to the Label and TextBox objects.

Along with the LeftMargin, RightMargin, and TopMargin properties, specifies the location of information displayed within a label or text box control. Read/write Integer.

expression.BottomMargin

expression Required. An expression that returns one of the above objects.

Remarks

A control's displayed information location is the distance measured from the control's left, top, right, or bottom border to the left, top, right, or bottom edge of the displayed information. To use a unit of measurement different from the setting in the regional settings of Windows, specify the unit (for example, cm or in).

In Visual Basic, use a numeric expression to set the value of this property. Values are expressed in twips.

You can set these properties by using the property sheet , a macro , or Visual Basic .

BottomMargin property as it applies to the Printer object.

Along with the TopMargin, RightMargin, and LeftMargin properties, specifies the margins for a printed page. Read/write Long.

expression.BottomMargin

expression Required. An expression that returns a Printer object.

Example

As it applies to the Label and TextBox objects.

The following example offsets the caption in the label "EmployeeID_Label" of the "Purchase Orders" form by 100 twips from the bottom of the label's border.

With Forms.Item("Purchase Orders").Controls.Item("EmployeeID_Label")
    .BottomMargin = 100
End With

Applies to | Label Object | Printer Object | TextBox Object

See Also | LeftMargin Property | RightMargin Property | TopMargin Property