This exact same insert string has worked before, but now when I try to insert a record into a MS Access database, the script returns the error:
------------------------------------------------------------
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
------------------------------------------------------------
Here's the code that I'm having problems with:
------------------------------------------------------------
sSQL = "INSERT INTO Messages(ForumID, Author, Email, Date, Subject, Message, Original, IP) Values('" & frmTopic & "', '" & frmAuthor & "', '" & frmEmail & "', '" & frmDate & "', '" & frmSubject & "', '" & frmMessage & "', '" & frmOriginal & "', '" & frmIP & "')"
-----------------------------------------------------------
Anyone know what the problem could be? Thanks in advance
------------------------------------------------------------
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
------------------------------------------------------------
Here's the code that I'm having problems with:
------------------------------------------------------------
sSQL = "INSERT INTO Messages(ForumID, Author, Email, Date, Subject, Message, Original, IP) Values('" & frmTopic & "', '" & frmAuthor & "', '" & frmEmail & "', '" & frmDate & "', '" & frmSubject & "', '" & frmMessage & "', '" & frmOriginal & "', '" & frmIP & "')"
-----------------------------------------------------------
Anyone know what the problem could be? Thanks in advance