BorderLineStyle Property

Applies To

Bound Object Frame Control, Chart Control, Combo Box Control, Label Control, Line Control, Option Group Control, Rectangle Control, Text Box Control, Unbound Object Frame Control.

Description

You use the BorderLineStyle property to specify the line style of a control’s border.

Note The BorderLineStyle property is included in this version of Microsoft Access only for compatibility with previous versions. Use the BorderStyle property to specify how a control’s border will appear.

Setting

The BorderLineStyle property uses the following settings.

Setting Description Visual Basic
Solid (Default) Solid line 0
Dashes Dashed line 1
Short Dashes Dashed line with short dashes 2
Dots Dotted line 3
Sparse Dots Dotted line with dots spaced far apart 4
Dash Dot Line with a dash-dot combination 5
Dash Dot Dot Line with a dash-dot-dot combination 6


You can set this property using the control’s property sheet, a macro, or Visual Basic.

Remarks

You can use this property to customize the look of your controls.

Note The BorderLineStyle property isn’t the same as the BorderStyle property, which determines whether a control’s border is transparent or visible.

See Also

BorderColor Property, BorderStyle Property, BorderWidth Property.

Example

You can use the following code to create a dotted border for a text box.


conDots = 3![frmCustomers]![txtLastName].BorderLineStyle = conDots