G
George Hester
I have this SQL in a query:
sSql = "SELECT *" & vbCrLf & _
"FROM tblTest4" & vbCrLf & _
"WHERE tblTest4.Caption_Name LIKE '%" & qryAuthor & "%';"
But I would like to do a query on the character ' But as you can see when
qryAuthor = ' I have a problem. If I try one ' then the query hangs. If I
use '' I get an error . I have tried Chr(39) and ' none of which work.
Any ideas how to query on this character? Thanks.
sSql = "SELECT *" & vbCrLf & _
"FROM tblTest4" & vbCrLf & _
"WHERE tblTest4.Caption_Name LIKE '%" & qryAuthor & "%';"
But I would like to do a query on the character ' But as you can see when
qryAuthor = ' I have a problem. If I try one ' then the query hangs. If I
use '' I get an error . I have tried Chr(39) and ' none of which work.
Any ideas how to query on this character? Thanks.