G
Guest
Hi all,
Table1 has column col1 as memo.
I'm trying to insert text from a text box on the Form into my col1. But the
textbox on the form has for example:
3" and 4" wide panels. 3"2' more space.
Here's my code that gives Runtime error 3075 for wrong syntax:
sql = Forms!frm1!txt1.text
DoCmd.RunSQL "INSERT into Table1 VALUES (' " & sql & " ')"
I know those quotes and double quotes are the ones causing the syntax error,
but how can I correct this problem. I tried searching for a similar question,
but couldn't find one.
Thanks for you help.
Table1 has column col1 as memo.
I'm trying to insert text from a text box on the Form into my col1. But the
textbox on the form has for example:
3" and 4" wide panels. 3"2' more space.
Here's my code that gives Runtime error 3075 for wrong syntax:
sql = Forms!frm1!txt1.text
DoCmd.RunSQL "INSERT into Table1 VALUES (' " & sql & " ')"
I know those quotes and double quotes are the ones causing the syntax error,
but how can I correct this problem. I tried searching for a similar question,
but couldn't find one.
Thanks for you help.