Very simply combine SQL with a function. In the query builder add this to a blank column, changing the obvious generic parameter to the field name for your query.
NewText:GetCleanText([FieldNameToBeCleaned])
And the NewText column will then display the cleaned text.
Public Function GetCleanText(MyText) As String
Dim intLen As Integer
Dim intCount As Integer
Dim strMyText As String
Dim strChar As String
intLen = Len(MyText)
For intCount = 1 To intLen
strChar = Mid$(MyText, intCount, 1)
If strChar <> "?" And strChar <> "*" Then
strMyText = strMyText & Mid$(MyText, intCount, 1)
End If
Next intCount
GetCleanText = strMyText
End Function
----------------------
scking@arinc.com
Life is filled with lessons.
We are responsible for the
results of the quizzes.
-----------------------