M
MikeR
I have a pass-through query having difficulty with names
with apostrophes. If the last name is "O'Toole", I get an
error message "unclosed quotation mark before character
string"
Here is my WHERE clause which is changed programmatically:
sWhereClause = " p.LastName LIKE '" & Me.ID & "%' "
How have others solved this?
I suppose I could use the InStr function to determine if
an apostraphe is present and write a different WHERE
clause just for that situation, but that's a few lines of
code.
with apostrophes. If the last name is "O'Toole", I get an
error message "unclosed quotation mark before character
string"
Here is my WHERE clause which is changed programmatically:
sWhereClause = " p.LastName LIKE '" & Me.ID & "%' "
How have others solved this?
I suppose I could use the InStr function to determine if
an apostraphe is present and write a different WHERE
clause just for that situation, but that's a few lines of
code.