Just as a simple test, I am trying to save html page source to a memo field in Access. The INSERT statement is:
The INSERT worked before I added the sPageText variable (I tested the code by adding a blank string to the database) to the statement.
The page source contains all sorts of tick marks, quote marks and other characters typical in html. My guess is that the data is causing the exception error:
Question is this: is there a way to store this data while preserving all the html?
tia,
flynn
Code:
cmdAdd.CommandText = "INSERT INTO tblWebData (PersistentID, ArticleDate, ArticleText, sURL) VALUES" & _
"(" & sPersistentID & "," & _
CDate(lvItem.SubItems(1).Text) & "," & _
sPageText & "," & _
lvItem.SubItems(3).Text & ")"
The INSERT worked before I added the sPageText variable (I tested the code by adding a blank string to the database) to the statement.
The page source contains all sorts of tick marks, quote marks and other characters typical in html. My guess is that the data is causing the exception error:
Code:
"ERROR [42000] [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression
Question is this: is there a way to store this data while preserving all the html?
tia,
flynn