Find and Replace with an update query

D

debora085

I have a database with one column of mailing addresses. I am trying to change
"Apt" within mailing address to "#". Everything I have tried wipes out the
entire address and leaves just #.
 
A

Allen Browne

Use Replace().

This kind of thing:

UPDATE Table1
SET Address = Replace([Address], "Apt", "#")
WHERE Address Is Not Null;
 

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