Force New Line in text box

D

diarmuidq

Hi
I have a text box which is displaying a memo field. The memo contains
several lines of text. I'd like to have each line start on a new line. I
tried using vbCr, but that only appears as a box. How can I seperate the
text onto a new line?
Thanks
Diarmuid
 
A

Allen Browne

You need both a carriage return--chr(13)--and a line feed--chr(10).

Try vbCrLf.
 

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