Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cahnging one character in a text field

Status
Not open for further replies.

blumash

Programmer
Oct 2, 2003
50
HU
I would like to change part of a text field in a file , for example I have a field with text "H6rom " in this text thesecond character is "6" , I would like to change this "6" to "a" .

Thank's
 
If you want to replace all instances of "6" with "a" in all records of the table, then you could do

REPLACE ALL MyField WITH CHRTRAN(MyField, "6", "a")

Is this what you need? If not, then please clarify.

 
Thank's stella740pl , it did the job & replaced all the "6" with "a".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top