replace

R

rml

I have a report that is using the following code:
=Replace([Description],". ","." & Chr(13) & Chr(10))

In the descriptions field, it looks like this:
testing. testing123. testing456.

Ater code:
testing.
testing123.
testing456.

After the code, everything should be to the left but it seems to be leaving
some spaces. I know I have spaces after the period in the description field
but thought the code handle it. What am I doing wrong?

Thanks.
 
K

KARL DEWEY

Try this to remove the extra spaces --
=Replace(Replace([Description]," "," "),". ","." & Chr(13) & Chr(10))

The inner replace is to exchange two space to one space.
 

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