I have found a number of archived threads on using Double Quotes to alleviate the problem created when doing an SQL with data that contains an apostrophe ' in the data.
I can't understand the syntax of using the Double quotes... Can someone give me an example of how the contents of my sql variable should look when I use the Double Quotes method?
IE: if I have LastName "O'Sullivan" and FirstName "Brian",
How would that look if I were to do a
Should I be using:
So I can understand this better would someone please demonstrate to me what the actual value of the SQL statement should be with the variables plugged into it...
I can't understand the syntax of using the Double quotes... Can someone give me an example of how the contents of my sql variable should look when I use the Double Quotes method?
IE: if I have LastName "O'Sullivan" and FirstName "Brian",
How would that look if I were to do a
Code:
Select * WHERE LastName LIKE "'" & strLastName & "' and '" & FirstName "'"
Should I be using:
Code:
Select * WHERE LastName LIKE """" & strLastName & """" & " and '" & FirstName "'"
So I can understand this better would someone please demonstrate to me what the actual value of the SQL statement should be with the variables plugged into it...