Remove all data from field except a part

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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 [*]*"
 
Back
Top