Posted: Tue Jan 01, 2013 9:01 am
Search here for the phrase "double convert", you can use two embedded Convert() functions to remove characters by providing a list to keep. For example, to keep all of the numerics:
The inner convert removes all numbers from your string, leaving just the non-numeric characters. The outer convert then removes the list of unwanted characters from your field.
Do the opposite by providing a list of the alphabetic characters you'd like to keep.
Code: Select all
Convert(Convert('0123456789','',YourField),'',YourField)
Do the opposite by providing a list of the alphabetic characters you'd like to keep.