J
Joe
hi,
how can i remove all characters from a string, except numeric ones?
thx
how can i remove all characters from a string, except numeric ones?
thx
hi,
how can i remove all characters from a string, except numeric ones?
thx
hi,
how can i remove all characters from a string, except numeric ones?
thx
hi,
how can i remove all characters from a string, except numeric ones?
thx
Copy and paste this into a new Module, and save it as basEcdysiast:
Public Function DigitsOnly(strIn As String) As String
Dim iPos as Integer
Dim strChar As String
DigitsOnly = ""
For iPos = 1 to Len(strIn)
strChar = Mid(strIn, iPos, 1)
If IsNumeric(strChar) Then
DigitsOnly = DigitsOnly & strChar
End If
Next iPos
End Function
You can then run an Update query updating your mixed field to
DigitsOnly([fieldname])
if it's a field in a table that you're trying to strip.
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps