Are those quote marks " or are they “? Those are two different quote
marks? You will probably have to do two queries and union them or use a
custom VBA function to handle the different types of quote mark characters.
Paste the following function into a vba module and call it in your query.
SELECT fGetCharacter(SomeField) as OneChar
FROM SomeTable
WHERE SomeField is not null
Public Function fGetCharacter(strIn)
'Get first character after a quote mark
Dim lPos As Long
lPos = InStr(1, strIn & "", Chr(34)) 'a quote mark "
If lPos = 0 Then
lPos = InStr(1, strIn & "", Chr(148)) ' a quote mark â€
End If
If lPos = 0 Then
lPos = InStr(1, strIn & "", Chr(147)) ' a quote mark “
End If
If lPos = 0 Then
fGetCharacter = Null
Else
fGetCharacter = Mid(strIn, lPos + 1, 1)
End If
End Function
Save the module with a name that is NOT fGetCharacter
'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================