Sorry... Still no luck.
My table is the arCustomer table. The field is the "Addr" field. I am selecting all Customers with an open balance. I'm designing a form letter that will show the name, address, etc. in the header and standard text in the body. When I put the address field on the report, I discovered the 4 lines are strung together in the database and read:
NAME OF CONTACT;STREET ADDRESS;ADDRESS2;ADDRESS3
My initial SQL Query was:
SELECT
arCustomer1."CustNum", arCustomer1."Name", arCustomer1."Addr", arCustomer1."City", arCustomer1."St", arCustomer1."Zip", arCustomer1."CntryCode"
FROM
"PUB"."arCustomer" arCustomer1
WHERE
arCustomer1."OpenBalance" > 0
ORDER BY
arCustomer1."CustNum" ASC
This generates the information I want. To work with the memo field arCustomer1."Addr", I tried inserting 'AND replace (arCustomer1."Addr",";",char(13))' into the Where section of the query. I, alternately, tried inserting 'arCustomer1."Addr"= replace (arCustomer1."Addr",";",char(13))'
Either way, I end up with the error above. I'm editing this in Crystal Reports 8.5>Database>Show SQL Query. Perhaps there is a different place I should be trying this, but everywhere else (Selection formula or other formulas), I get a warning that I can't use Memo fields in a formula.
Thanks for any help.
-J