replacing characters

S

shank

I need to REPLACE all characters in a text field that do not match the basic
26 character set. That includes, parenthesis, commas, spaces, quotes, etc.
Is there any quick way to do this without laying out each bad character in a
REPLACE formula?

thanks!
 
P

PC Datasheet

Use the Mid function in a loop to look at each character in the text field.
Within the loop use the Asc function to compare the ascii value of the
character with acceptable ascii values (expressed as a range of ascii
values) and replace the character if its ascii value is not acceptable.
 

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