Simply:
I'm am building an SQL Statement string to populate a recordset in my VB. String looks something like this:
recordset.Open "SELECT * FROM Account WHERE LastName Like '%" & strName & "%' ORDER BY LastName"
I need to know how to handle this if the user enters some character, like a single or double quote, into the strName.
(Maybe, looking for a name like O'Neal).
Thanks.
I'm am building an SQL Statement string to populate a recordset in my VB. String looks something like this:
recordset.Open "SELECT * FROM Account WHERE LastName Like '%" & strName & "%' ORDER BY LastName"
I need to know how to handle this if the user enters some character, like a single or double quote, into the strName.
(Maybe, looking for a name like O'Neal).
Thanks.