Replace Letters

D

Dimitris

Hello. I need to replace letters in a word. For example replace the letter
"M" in the word "SMITH" with "L" so it will become "SLITH".
I have a field named "ALLAGI" of table "PNK1" and I want all the "M" letters
in that field no matter if they are in the beggining, middle or end of the
word to be changed. If there are 2 "M" letters in a word etc. I want both of
them to change.

Thank you in advance.
Dimitris
 
R

Rick Brandt

Hello. I need to replace letters in a word. For example replace the
letter "M" in the word "SMITH" with "L" so it will become "SLITH". I
have a field named "ALLAGI" of table "PNK1" and I want all the "M"
letters in that field no matter if they are in the beggining, middle or
end of the word to be changed. If there are 2 "M" letters in a word etc.
I want both of them to change.

Thank you in advance.
Dimitris

If using Access 2000 or newer there is a Replace() function. Use that in
an update query. As usual with update queries I suggest testing on a
copy of your table.
 

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