Hi,
I am opening a recordset containing a number of records through a sql statement:
strVariable = _
"SELECT * FROM CardTypeTable WHERE CardDescription = '" & CheckCardType & "'"
rsTemp.Open (strVariable)
It happens that the contents of the field CheckCardType may have words with an apostrophe. e.g. "VISA'S".
The above statements will give an error due to this apostrophe.
Can anyone please help out with this?
Thanks in advance
I am opening a recordset containing a number of records through a sql statement:
strVariable = _
"SELECT * FROM CardTypeTable WHERE CardDescription = '" & CheckCardType & "'"
rsTemp.Open (strVariable)
It happens that the contents of the field CheckCardType may have words with an apostrophe. e.g. "VISA'S".
The above statements will give an error due to this apostrophe.
Can anyone please help out with this?
Thanks in advance