Add or remove scroll bars
Add or remove scroll bars for a form or for a text box on a form
By
default, a form has vertical and horizontal scroll bars that appear only when
necessary. Also, by default, when you create a text box based on a Memo
field in a Microsoft Access database, or when you create a text box based on a
text
or ntext
column in an Access project, Access adds a vertical scroll bar to
the text box. Otherwise, a scroll bar doesn't appear in a text box unless you
change the value of the ScrollBars property. Follow this procedure only
if you want to change the default behavior.
- Open the form in Design view.
- Do one of the following:
- To open the property sheet for a text box, select the text box and then
click Properties
on the
toolbar.
- To open the property sheet for a form, double-click the form selector.
- Click
the Format tab, and in the ScrollBars property box, do one of the following:
- To
specify that a scroll bar for a text box never appears, click None.
- To
specify that a scroll bar for a form never appears, click Neither.
- To
specify that a vertical scroll bar for a text box always appears, click
Vertical.
- To
specify that a vertical scroll bar for a form appears when necessary,
click Vertical Only.
- To
specify that a horizontal scroll bar for a form appears when
necessary, click Horizontal Only.
- To
specify that both vertical and horizontal scroll bars appear when
necessary, click Both.
Add or remove scroll bars for a text box on a data access page
By default, scroll bars for a text box based on a Memo field appear only when
necessary; if the text box is based on a field whose data type isn't Memo, the
scroll bars do not appear at all. Follow this procedure only if you want to
change the default behavior.
- Open the data access page in Design view.
- Click the text box, and then click Properties
on the toolbar.
- Click
the Format tab, and do one of the following:
- To specify that scroll bars never appear in the text
box, set the Overflow, OverflowX,
and OverflowY properties to Hidden.
- To specify that scroll bars appear in the text box only when necessary,
set the Overflow, OverflowX, and OverflowY properties to Auto.
- To add a vertical scroll bar to a text
box, set the OverflowX
property to Hidden and the OverflowY property to Scroll.
- To add a horizontal scroll bar to a text
box, set the OverflowX
property to Scroll and the OverflowY property to Hidden.