INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Text Issue

Text Issue

(OP)
Hi

I am getting text information from our SQL database which unfortunately comes in from a text field which as everything in a block.
it is customer delivery address and come in like the example below

12 Norwood Road
Southall
Middlesex
UB2 4LL

If I show this in the details section it makes the report far to big with lots of pages.
Is there a way I can make the field so the text would read

12 Norwood Road, Southall, Middlesex, UB2 4LL

Not bothered about the comma separator, but if I could get the text in one line that would be great.

Any ideas please if this is possible

Thanks

RE: Text Issue

Try: replace({table.field},chr(13),",")

RE: Text Issue

(OP)
Hi

I did this in a formula and it now comes out like


12 Norwood Road,
Southall,
Middlesex,
UB2 4LL,

The formula is like this

replace({148_vwjourneyplannerCP.DeliveryAddress},chr(13),",")



RE: Text Issue

(OP)
Hi

Managed to solve it , I have the formula as this now

REPLACE(replace({148_vwjourneyplannerCP.DeliveryAddress},chr(13)," "),CHR(10),",")

Works well

Thanks

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close