G
Guest
I knew this is a very 'popular' question but I could not find the proper
answer to solve it.
I have a line of code
sqlstr = "INSERT INTO
VALUES (Date,'" + Comments.value + "');"
docmd.runsql sqlstr
The 'Comments' is a text box that waiting for user's input. The user's input
may include ' and " (for example: It's a "car")
When passing the example to the query, error occurred. I hope in my table,
it will store the date and the complete input (e.g. It's a "car"). Anyone who
know the solution please kindly reply this post as soon as possible because
it is urgent. Thank you.
Cheer,
chonming
answer to solve it.
I have a line of code
sqlstr = "INSERT INTO
docmd.runsql sqlstr
The 'Comments' is a text box that waiting for user's input. The user's input
may include ' and " (for example: It's a "car")
When passing the example to the query, error occurred. I hope in my table,
it will store the date and the complete input (e.g. It's a "car"). Anyone who
know the solution please kindly reply this post as soon as possible because
it is urgent. Thank you.
Cheer,
chonming