I am getting syntax error for below code: Please help
db.Execute "UPDATE Account_Manager_Details" _
& "SET count = count + 1 " _
& "WHERE ID = " & id & ";"
Thanks You.
I am getting syntax error for below code: Please help
db.Execute "UPDATE Account_Manager_Details" _
& "SET count = count + 1 " _
& "WHERE ID = " & id & ";"
Thanks You.
You need a space between the table name and the "SET" statement.
db.Execute "UPDATE Account_Manager_Details "
It's a good idea to assign your SQL statement to a string before you execute it, then you can see exactly what you are doing.
sSQL = "update account_manager_details ... " _
db.execute sSQL, dbfailonerror