R
Reg Booth
I am having a problem writing an SQL update. I am updating a table
(table2) with a text string from table1. It works fine until there is an
apostrophe or quotation marks embedded in the text string that I am
using to update the field.
See below for a code snippet of my SQL code
dim rs as recordset
set rs = db.openrecordset("table1")
While not rs.eof
sqlStr = "UPDATE table2 Set field1 = '" & rs!Field1 & "'"
db.execute sqlstr, DB_FAILONERROR
Wend
Thanks in advance for your assistance.
Reg
(table2) with a text string from table1. It works fine until there is an
apostrophe or quotation marks embedded in the text string that I am
using to update the field.
See below for a code snippet of my SQL code
dim rs as recordset
set rs = db.openrecordset("table1")
While not rs.eof
sqlStr = "UPDATE table2 Set field1 = '" & rs!Field1 & "'"
db.execute sqlstr, DB_FAILONERROR
Wend
Thanks in advance for your assistance.
Reg