J
John
Hi
I am using the below code to run a sql on an underlying access table;
insStr = "INSERT INTO [Web Site Action Queue] ( Action, [Client ID],
[Operator], Request_Date ) " & _
"VALUES (""Modify Client"", 93, ""Administrator"", Now())"
Dim insCmd As New OleDbCommand(insStr, dbConContacts)
insCmd.ExecuteNonQuery()
I get a 'Syntax error in INSERT INTO statement.' error on the last line.
But if I run the same query as below directly in access it works fine.
INSERT INTO [Web Site Action Queue] ( Action, [Client ID], [Operator],
Request_Date ) VALUES ("Modify Client", 93, "Administrator", Now())
What is the problem and how can I fix it?
Thanks
Regards
I am using the below code to run a sql on an underlying access table;
insStr = "INSERT INTO [Web Site Action Queue] ( Action, [Client ID],
[Operator], Request_Date ) " & _
"VALUES (""Modify Client"", 93, ""Administrator"", Now())"
Dim insCmd As New OleDbCommand(insStr, dbConContacts)
insCmd.ExecuteNonQuery()
I get a 'Syntax error in INSERT INTO statement.' error on the last line.
But if I run the same query as below directly in access it works fine.
INSERT INTO [Web Site Action Queue] ( Action, [Client ID], [Operator],
Request_Date ) VALUES ("Modify Client", 93, "Administrator", Now())
What is the problem and how can I fix it?
Thanks
Regards