Scroll bars in text box ???

D

David

I have a text box for a 200 character text field.
I designed the form and it works ok.
However, as soon as I click in the box, scroll bars
appear. If there is data in the box, the scroll bars
appear even when the data is only one character.

Is there any way to stop the scroll bars appearing unless
the data actually needs scrolling, i.e. it does not all
fit in the box.

I'd rather not make the box bigger as this is a continuous
form and to do so will necessitate lots of unnecessary
scrolling up and down.
 
J

Jim Allensworth

I have a text box for a 200 character text field.
I designed the form and it works ok.
However, as soon as I click in the box, scroll bars
appear. If there is data in the box, the scroll bars
appear even when the data is only one character.

Is there any way to stop the scroll bars appearing unless
the data actually needs scrolling, i.e. it does not all
fit in the box.

I'd rather not make the box bigger as this is a continuous
form and to do so will necessitate lots of unnecessary
scrolling up and down.
An alternative to the scroll bars might be to use a zoom box in the
double click event.

Private Sub txtBox_DblClick(Cancel As Integer)
DoCmd.RunCommand acCmdZoomBox
End Sub

- Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top