Concatenate form fields and include linefeed

O

OssieMac

Access 2003 Question.

I want to concatenate some table fields into a single text field in a report.
Basic concatenation works OK but I cannot get linefeeds to work. Every way I
try I just get square boxes and no line feeds.

Will very much appreciate it if I can get either confirmation that it can't
be done or preferrably how to achieve.
 
O

OssieMac

I feel foolish when I have posted a question and the answer comes to me
later. Just had to get the code the correct way around. Chr(13) & Chr(10). I
had them reversed.
 
L

Linq Adams via AccessMonster.com

I find it easier to remember the VBA constant, vbNewLine

"First Line" & vbNewLine & "Second Line"

yields

First Line
Second Line
 
O

OssieMac

That works fine in VBA and I use it myself but when concatenating table
fields into a form or report textbox it is not recognized.
 

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