Neil Toulouse
Programmer
Hi guys!
I am assuming this is an easy one! Basically I am trying to strip any numeric character (ie 0 - 9) from a charater field. I am currently using this long-winded code:
..but is there a better/shorter way?
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...
I am assuming this is an easy one! Basically I am trying to strip any numeric character (ie 0 - 9) from a charater field. I am currently using this long-winded code:
Code:
SELECT REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE([MyField],'1',''),'2',''),'3',''),'4',''),'5',''),'6',''),'7',''),'8',''),'9',''),'0','') AS MyField
..but is there a better/shorter way?
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...