Thanks. The below works however, it does not remove instead replaces my
existing text with what is in the Update To: row in design view.
For example: In my table, there is a column called Field2 which has a row
with fffnevada as text.
Any ideas on how to remove vs. replace the entire text? My existing code is:
Field: Field2
Table: Good Data
Update To: Field2
Criteria: Like (fff*) or Like ("ggg*)
To replace
fffNevada
by
Nevada
or, in general, to trim off the first three letters of any field value
starting with fff or ggg, use a criterion
LIKE "fff*" OR LIKE "ggg*"
and an Update To value of
Mid([Field2], 4)
The Mid() function returns a substring, in this case the substring
starting at the 4th character (after the fff) and going to the end of
the field.
The SQL view of the query would be
UPDATE [Good Data]
SET [Field2] = Mid([Field2], 4)
WHERE [Field2] LIKE "fff*" OR [Field2] LIKE "ggg*"
John W. Vinson[MVP]