Remove all data from field except a part

G

Guest

I have a memo field called Comments. I want to remove all data from field
except for any info after the words "replaced tag *" (asterisk being a
wildcard). What is the best way to do this? Thanks. Matt
 
J

John Spencer (MVP)

Something like the following UNTESTED SQL statement. TEST THIS on a copy of
your data.

UPDATE YourTable
SET [Comments] = Mid([Comments], Instr(1,[Comments],"Replaced Tag *" + 14))
WHERE [Comments] Like "*Replaced Tag [*]*"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top