(Nam Kang)
6/6/2002 1:30:00 AM
Marlene,
call this function and it will fix your string
Function SingleQuoteFix(strIn)
Dim y
If InStr(strIn, "'") <> 0 Then
For y = 1 To Len(strIn)
If Mid(strIn, y, 1) = "'" Then
SingleQuoteFix = SingleQuoteFix + "''"
Else
SingleQuoteFix = SingleQuoteFix + Mid(strIn, y, 1)
End If
Next
Else
SingleQuoteFix = strIn
End If
End Function
Hope that helps,
Nam
This posting is provided "AS IS" with no warranties, and confers no rights.