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

Editing text using SQL update query

Status
Not open for further replies.

charlie39

MIS
Apr 19, 2002
4
US
I am working with an Access 97 database file that contains a memo field that has some invalid HTML tags that need to be cleaned up. For example, it contains &quot;<\I>&quot; as the closing tag for italics instead of &quot;</I>&quot;. Oracle supports a &quot;Replace&quot; function that would let me do this update by running a SQL query.

UPDATE tablename
SET textfield = REPLACE(textfield,&quot;<\I>&quot;,&quot;</I>&quot;)
where INSTR(textfield,&quot;<\I>&quot;)>0;

I don't find an equivalent for the REPLACE function in MS Access. What would be the best way to automatically handle a series of edits like this in Access?
 
See the following link for a function that can replace a string.

faq705-711

hth,
GGleason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top