Hi,
Ran into a couple problems when I tried to do an "INSERT INTO" to my Access2K database from the Guestbook form ASP. Here is one of them when trying to insert some single quotes character into a database memo field called "COMMENT":
1) When a line in the form field, "txtCOMMENT" contains double-quotation characters or other symbols, the field was inserted into the db okay.
2) When a line contained 2 single-quotation characters consecutively, the database updated correctly but only 1 single-quote character was stored.
3) When a line contained 2 single-quotation characters separated by at least one space, I got the following error about missing operator.
The browser error message is as followed:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''This is the first line 1. This is the 3rd line with 3 spaces. This is the 5th line with symbol: "DOUBLE QUOTE" This is the 6th line with symbol: ~!@#$%^&*()<>{}|?/" This is the 7th line with symbol: ' ' ''.
Thanks for any advice on how to work around this problem.
Ran into a couple problems when I tried to do an "INSERT INTO" to my Access2K database from the Guestbook form ASP. Here is one of them when trying to insert some single quotes character into a database memo field called "COMMENT":
1) When a line in the form field, "txtCOMMENT" contains double-quotation characters or other symbols, the field was inserted into the db okay.
2) When a line contained 2 single-quotation characters consecutively, the database updated correctly but only 1 single-quote character was stored.
3) When a line contained 2 single-quotation characters separated by at least one space, I got the following error about missing operator.
The browser error message is as followed:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''This is the first line 1. This is the 3rd line with 3 spaces. This is the 5th line with symbol: "DOUBLE QUOTE" This is the 6th line with symbol: ~!@#$%^&*()<>{}|?/" This is the 7th line with symbol: ' ' ''.
Thanks for any advice on how to work around this problem.