I am using crystal reports 8.5 and i am connecting using an ODBC connection to a Microsoft Access database.
I have a formula field that is concatenating the address and postcode fields together with a chr(13) between them.
{tblAuth.Address}+chr(13)+{tblAuth.Postcode}
The problem is that the address field in the access database sometimes has chr(13) or chr(10) after the last line of this field and so my formula field is displayed like this:
10 New Road
Islington
London
NW7 6TY
Is there any way I can remove the chr(13) and chr(10) after the last line only?
I know using the replace function that I can remove all occurrences of chr(13) and chr(10)
Replace(Replace({tblAuth.Address},chr(13),""),chr(10),"")
However i only want to remove the ones after London so the address will be displayed like this:
10 New Road
Islington
London
NW7 6TY
Hope someone can help.
I have a formula field that is concatenating the address and postcode fields together with a chr(13) between them.
{tblAuth.Address}+chr(13)+{tblAuth.Postcode}
The problem is that the address field in the access database sometimes has chr(13) or chr(10) after the last line of this field and so my formula field is displayed like this:
10 New Road
Islington
London
NW7 6TY
Is there any way I can remove the chr(13) and chr(10) after the last line only?
I know using the replace function that I can remove all occurrences of chr(13) and chr(10)
Replace(Replace({tblAuth.Address},chr(13),""),chr(10),"")
However i only want to remove the ones after London so the address will be displayed like this:
10 New Road
Islington
London
NW7 6TY
Hope someone can help.