P
Palatini
Hi guys I am writing a SQL string in VBA code for a database. it looks
like
strSql = "select * from tbl_patient where surname='" & rsVisaRep!
Surname & "'"
it gives the right strSql string, such as: select * from tbl_patient
where surname='Bush'
but when deal with some surnames like D'Angilo the SQL string is
not right.
How to fix it?
Thanks
Wayne
like
strSql = "select * from tbl_patient where surname='" & rsVisaRep!
Surname & "'"
it gives the right strSql string, such as: select * from tbl_patient
where surname='Bush'
but when deal with some surnames like D'Angilo the SQL string is
not right.
How to fix it?
Thanks
Wayne