T
TeeSee
The immediately following is the input code .......
Do
.Edit
strA = ![MaterialDescription]
Debug.Print strA
For intI = 1 To Len(strA)
strB = Mid(strA, intI, 1)
If strB Like "[A-Z,a-z,0-9,_,(,),/,-, ]" Then
strC = strC & strB
End If
Next intI
Debug.Print strC
Exit Sub
![Description] = strC
.Update
.MoveNext
strC = vbNullString
Loop Until .EOF
And the following is the output .... before and after. Why does the
hyphen which I believe is CHR$(45) not behave like the other
characters???
MICRO-LOK AP-T 1/2"(7/8)x 1"
MICROLOK APT 1/2(7/8)x 1
Do
.Edit
strA = ![MaterialDescription]
Debug.Print strA
For intI = 1 To Len(strA)
strB = Mid(strA, intI, 1)
If strB Like "[A-Z,a-z,0-9,_,(,),/,-, ]" Then
strC = strC & strB
End If
Next intI
Debug.Print strC
Exit Sub
![Description] = strC
.Update
.MoveNext
strC = vbNullString
Loop Until .EOF
And the following is the output .... before and after. Why does the
hyphen which I believe is CHR$(45) not behave like the other
characters???
MICRO-LOK AP-T 1/2"(7/8)x 1"
MICROLOK APT 1/2(7/8)x 1