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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Storing formatted text to a variable.

Status
Not open for further replies.

Ascentient

IS-IT--Management
Nov 4, 2002
267
I have stored some formatted text to a string variable and am then assigning that variable to a textbox for display on a form. (It's the only control on the form.)
The only signifcant formatting I have is carriage returns.

The displayed results is a bunch of senteneces running together.

Is this by design or am I missing some control or option on the text box that tells it to retain formating?

Ascent
 
The only signifcant formatting I have is carriage returns
Seems you missed the line feed:
Me![textbox name] = "Line 1" & vbCrLf & "Line 2"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
That did it. I was using the chr(13) between lines.


Ascent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top