LineSpacing Property

Microsoft Access Visual Basic

expression.LineSpacing

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

Remarks

A control's displayed information location is the distance measured between each line of the displayed information. To use a unit of measurement different from the setting in the Regional Options dialog box in Windows Control Panel, specify the unit, such as cm or in (for example, 3 cm or 2 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.

Example

The following example sets the line spacing to 0.25 inches for the text box "PurchaseOrderInformation" on the "Purchase Order Form"

' 0.25 inches = 360/1440 twips.
Forms("Purchase Orders").Controls("PurchaseOrderDescription").LineSpacing = 360