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

Report - Line Break

Status
Not open for further replies.

DanKay1

Programmer
Jun 9, 2004
54
US


I am trying to create report that will show one field from the database. That field is a memo field and its very long, I would like to break it to the next line at specific places, but I can't break it at specific places because Access Reports doesnt understand \n.

Here is a sample field from the database:

"Text text \n Text2 text2 \n Text3 text3"

I want it to show up in report as"
Text text
Text2 text2
Text3 text3

Thanks in advance...
 
If you have control enough over the text to be able to insert \n, then try vbCrLf in stead:

[tt]"Text text " & vbCrlf & " Text2 text2 " & vbCrLf & " Text3 text3"[/tt]

Roy-Vidar
 
"Text text \n Text2 text2 \n Text3 text3"
Something like this ?
Replace([database text], "\n", vbCrLf)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top