Replace Carriage returns in a text field?

P

Patrick

In a report,I wish to replace carriage returns in a text
field with commas. Does anyone know how to do this?
Thanks,
 
M

Marshall Barton

Patrick said:
In a report,I wish to replace carriage returns in a text
field with commas. Does anyone know how to do this?

If you have A2K or later, then the Replace function can
easily do this. You don't say where/how the field is being
used, but in a text box you might try:

=Replace(thefield, Chr(13) & Chr(10), ", ")

Note: Make sure the text box has a different name than
thefield.
 

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