ScrollBars Property

Microsoft Access Visual Basic

expression.ScrollBars

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

Setting

The ScrollBars property uses the following settings.

Setting Visual Basic Description
Neither (forms)
None (text boxes)
0 (Default for text boxes) No scroll bars appear on the form or text box.
Horizontal Only (forms) 1 Horizontal scroll bar appears on the form. Not applicable to text boxes.
Vertical Only (forms)
Vertical (text boxes)
2 Vertical scroll bar appears on the form or text box.
Both (forms) 3 (Default for forms) Vertical and horizontal scroll bars appear on the form. Not applicable to text boxes.

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

For a text box, you can set the default for this property by using the default control style or the DefaultControl method in Visual Basic.

Remarks

If your form is larger than the available display window, you can use the ScrollBars property to allow the user to view the entire form.

You can use the NavigationButtons property to control record navigation.