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

Formula to display records in one line

Status
Not open for further replies.

kv444

Programmer
Nov 20, 2011
23
US
Hi,

I want to display the below address in one line.


248 liberty road
Cincinnati Ohio

I tried to insert a new text box to put this address and increased the width but it still displays the address in two line.Could some one please let me know how to write a formula to display the address in a single line instead of two lines like above.

Appreciate your help in advance !

Thanks
 
Is this address all from one instance of one field? If so, try a formula like this:

replace({table.address},chr(13),", ")

This would replace the return with a comma and space.

If this doesn't work, try chr(10) instead of chr(13).

-LB
 
Thank you so much for your reply ! yes the addresses are from one instance.

I tried doing this as you have suggested,but its still showing up the same way except for a comma in between in two separate lines like below:

248 liberty road,
Cincinnati, Ohio

I will need to moved the address so that they are displayed in one line. Could you please let me know if there is some other way or some other formula to do this.

I have tried to put the address object in a seperate text box and increased the width but it didn't work.

 
Try this instead:

replace(replace({table.address},chr(13),", "),chr(10),"")

-LB
 
Thank You so much !

It worked.


Thanks Again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top