Form Textbox

shamas21

Registered User.
Local time
Today, 19:39
Joined
May 27, 2008
Messages
162
Hi All

I have a text box that is a summary of the orders made. It can sometimes be a lengthy summary and the text box isnt big enough to view the entire text.

Im looking to add verticle scroll bars to the text box so the user can scroll down to view all the text. Is this possible?

thanks
 
I would think you can simply set the scroll bars property to 'Vertical' for the text box control.
 
You can set scroll bars in the textbox's properties from design view when permitted eg not if the form is a datasheet.

Brian
 
Hi,

Thanks for your reponses. My data is in form view. I have set the scroll bar to verticle but it still doesnt appear. I still cant use scroll to look at the missing information.
 
I have set the scroll bar to verticle but it still doesnt appear. I still cant use scroll to look at the missing information.

Several things:

  1. If you have any of the textbox's Margins are set to anything but 0" the scrollbars won't appear.
  2. Scrollbars only appear when the textbox has focus.
  3. You can only scroll using the scrollbars; you can't use the mousewheel.

You might also think about "zooming" the textbox by Double Clicking on it:

Code:
Private Sub YourTextBox_DblClick(Cancel As Integer)
 DoCmd.RunCommand acCmdZoomBox
End Sub
You could also use this code in the GotFocus event, or even the MouseMove event on a Single Form View.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom