OrWolf
MIS
- Mar 19, 2001
- 291
I'm trying to develop a function to replace any special characters that are input by the user. I'm really close, however the I can't replace a value with null or "". My only option seems to be replacing with a space, and this can leave the entered data looking rather odd. Does any one know a better way to do this then below?
BadCharPos = InStr(1, InputVal, SpecialChar)
If BadCharPos > 0 Then
Mid(InputVal, BadCharPos) = " "
End If
Thanks for your help!
BadCharPos = InStr(1, InputVal, SpecialChar)
If BadCharPos > 0 Then
Mid(InputVal, BadCharPos) = " "
End If
Thanks for your help!