ScrollBarAlign Property

Microsoft Access Visual Basic

expression.ScrollBarAlign

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

Remarks

The ScrollBarAlign property uses the following settings.

Setting Visual Basic Description
System 0 Vertical scroll bar is placed on the left if the form or report Orientation property is right to left; and on the right if the form or report Orientation property is left to right.
Right 1 Aligns vertical scroll bar on the right side of the control.
Left 2 Aligns vertical scroll bar on the left side of the control.

Note  You can set this property by using the property sheet or Visual Basic.

Remarks

For combo and list boxes, ScrollBarAlign also controls the placement of the box button above the scroll bar.

Example

The following example aligns the vertical scroll bar on the left side of the "Country" combo box in the "International Shipping" form.

Forms("International Shipping").Controls("Country").ScrollBarAlign = 2