ousoonerjoe
Programmer
Have you looked at REPLACE()?
--------------------------------------------------
“Crash programs fail because they are based on the theory that, with nine women pregnant, you can get a baby a month.” --Wernher von Braun
--------------------------------------------------
Code:
SELECT [Names] = AccountName,
[Addresses] = AccountAddress,
[Display] = AccountName + ' ' + REPLACE(REPLACE(AccountAddress, CHAR(13), ''), CHAR(10), '')
FROM tblAccounts;
--------------------------------------------------
“Crash programs fail because they are based on the theory that, with nine women pregnant, you can get a baby a month.” --Wernher von Braun
--------------------------------------------------