Good day,
I'm trying to perform an update query from LV 7.1. The only way I could think of to try to execute such a task would be with the Execute Query VI. My SQL statement has the following form: (I changed the names/values due do confidentiality restraints):
UPDATE TableName SET 154.000000 WHERE Model = ABC123-DE45
I get the following error (again, my VI name changed for confidentiality):
Conn Execute.vi->LV-Program.vi<ERR>Exception occured in Microsoft OLE DB Provider for ODBC Drivers, [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.. in Conn Execute.vi->LV-Program.vi
With this error code: -2147217900
Now I'm somewhat a novice at DB's and SQL so don't know specifically where the syntax error exists but this is what I've done thus far to troubleshoot:
As the model number has a dash in it (or a minus sign if you will), I've tried putting it in both quotations and appostrophies (ie value = "xxx-y" and value = 'xxx-y'). I tried both with and without a semicolon at the end of the string input for the query. Get the same errors.
I'm trying to perform this update query to a local MDB, which is not set to read-only (according to the file->properties). I also have full control permissions to this file.
I can successfully query the DB elsewhere in my program and am confident my DSN file containing the database info is fine.
Any help would as always be most appreciated
--
Sean