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

Cr/Lf delimited field in SQL table

Status
Not open for further replies.

5lights

MIS
Nov 19, 2003
53
US
The field contains 1-3 5-char codes delimited by 'cr/lf'.
How can I display the contents on a single line?
 
Try using the Replace function on the string to get rid of the carriage returns. This will replace them with spaces:

Replace({Table.Field}, Chr(13), " ")

-dave
 
Regretfully, I'm forced to use an older version of Crystal(7)....so I'm working with :
If instr({Charges.CPTCodes}, Chr(13)) >0 then
StringSubString ({Charges.CPTCodes},Chr(13),",")

This adds the comma, but I still get the data on two lines..

Any more ideas?
 
No, dont have that UFL....am thinking I'll re-format my layout to allow the multiple-line data.
I'm burned out, will finish tomarrow.
Thanks for the suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top