Find and Replace a Bracket with text????

G

Guest

I'm trying to clean up an Access 2002 database of 185,000 entries, where one
field contains information that ends with the following three characters: [In

I've tried to find and replace the bracket, but Access thinks it's part of a
string. How can I locate these three characters, and remove them from each
entry?

Thanks,
Peter
 
J

John Vinson

I'm trying to clean up an Access 2002 database of 185,000 entries, where one
field contains information that ends with the following three characters: [In

I've tried to find and replace the bracket, but Access thinks it's part of a
string. How can I locate these three characters, and remove them from each
entry?

Thanks,
Peter

Run an Update query updating the field to

Replace([fieldname], "[In", "")

To make this somewhat more efficient, use a criterion of

LIKE "*[[[]In"

enclosing the left square bracket IN square brackets so it takes it
literally.

John W. Vinson[MVP]
 

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