I want to insert names into a database. Everything works fine until I want to insert a name with a quote.
My insert command is:
strSql = "Insert Into Individual (Name, FirstName) Values (" & strINDIName & ", " & strINDIFirstName & ")"
This works fine when I want to insert a name like: Cain
But it does NOT work with: OCain
My insert command is:
strSql = "Insert Into Individual (Name, FirstName) Values (" & strINDIName & ", " & strINDIFirstName & ")"
This works fine when I want to insert a name like: Cain
But it does NOT work with: OCain