hello everyone, i have this small problem with sql insert. i have a variable that holds the data with a single quote included as part of the string and is to be inserted in a table.
whenever i execute the docmd.execute insert- its giving errors. i am assuming its the quote that caues it. is there a solution for that? coz there are strings that needs the single quote, what will i do? thank you in advance
e.g.
cTitle = "Sam's Adventure"
docmd.execute "Insert into TITLE(title)" _
& " values('"& cTitle &"');"
whenever i execute the docmd.execute insert- its giving errors. i am assuming its the quote that caues it. is there a solution for that? coz there are strings that needs the single quote, what will i do? thank you in advance
e.g.
cTitle = "Sam's Adventure"
docmd.execute "Insert into TITLE(title)" _
& " values('"& cTitle &"');"