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

SQL statement to remove quote marks?

Status
Not open for further replies.

KennyRohan

Technical User
Apr 21, 2003
133
0
0
US
Does anyone have an SQL routine to use in MS Access to remove unwanted quote marks from the email address field in all records? Thank you.
 
To replace single quotes in ms-access:
Code:
UPDATE tblEmails SET strEmail = Replace(strEmail, "'", "")

To replace double quotes in ms-access:
Code:
UPDATE tblEmails SET strEmail = Replace(strEmail, """", "")

To replace single quotes in SQL-Server:
Code:
UPDATE tblEmails SET strEmail = Replace(strEmail, '''', '')

To replace double quotes in SQL-Server:
Code:
UPDATE tblEmails SET strEmail = Replace(strEmail, '"', '')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top