Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrap text on control

Status
Not open for further replies.

Costefran

Technical User
Jan 2, 2008
197
GB
Hello

I'm sure there is a simple answer to this but cannot seem to work it out

Is there a way to wrap text on a text control

I have tried can grow but it doesn't seem to work

(Same for reports)


Thanks
 
As far as I am aware you text boxes do not have a textwrap property. Use shift & enter
or alt & enter and this should move you down to the next line (inserts a carriage return and line feed).
Alternatively you may mave to write a routine to perform this. Let me know if you want to attempt the latter.


Ian Mayor (UK)
Program Error
Always make your words short and sweet. Because you never know when you may have to eat them.
 
I'm not sure if I understand the problem right, but if I make a textbox bigger (taller) then one row, the text gets wrapped.

Pampers [afro]
Keeping it simple can be complicated
 
You kept that one quiet...[wink]

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Thanks to all for the responses

Unfortunately I have a text box which I can't make bigger or taller so would like to wrap text

So to program error I probably need a routine which creates a new line when it knows it has reached the end of the text box

Is this possible?

 
some discrepancy here:
I can't make bigger
I have tried can grow

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Wait a minute. Just tested it and textboxes automatically wrap text.(once the word is split over two lines the textbox will move the word to the start of the new line! It also moves up a line when it reaches the bottom of the textbox!

So what exactly do you mean?

You could try using this in a onclick event of the textbox and see if this is what you want.

Private Sub TextBoxName_Click()
DoCmd.RunCommand acCmdZoomBox
End Sub

Ian Mayor (UK)
Program Error
Always make your words short and sweet. Because you never know when you may have to eat them.
 
Thanks very much I will give your answer a try

For reference my subform text boxes seen to clip the sentence so I only see half of it

 
. . . or to [blue]Zoom[/blue] from the keyboard [blue]Shift+F2[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top