I am trying to update an Access database field with a hyperlink (text including html tags). I have created an sql string including this html text (which is held in a variable called new_document) : "<a href = '\\ADONIS\ISO9001\QSLA-9998.mpp'>QSLA-9998</a>"
the sql command looks like this:
sql = cstr(" update Table1 set Title= '" &Request.Form.Item("Title"
& "', Document= '"& cstr(new_document) &"' where level = '" &Request.Form.Item("Level"
& "' and number = '" &Request.Form.Item("Number"
&"'"
When I try to run the script, I get the following error.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''<a href = '\\ADONIS\ISO9001\QSLA-9998.mpp'>QSLA-9998</a>''.
Can anyone help how I can define a variable which is then included in an sql string that updates a hyperlink field in an Access database?
Thank you!
the sql command looks like this:
sql = cstr(" update Table1 set Title= '" &Request.Form.Item("Title"
When I try to run the script, I get the following error.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''<a href = '\\ADONIS\ISO9001\QSLA-9998.mpp'>QSLA-9998</a>''.
Can anyone help how I can define a variable which is then included in an sql string that updates a hyperlink field in an Access database?
Thank you!