This SQL statement will work fine:
conn.execute ("INSERT INTO TABLE (FIELD1) VALUES ('NAME')")
However, if I add the where clause I will get an error message saying ( Missing semicolon at end of SQL statement!
EXAMPLE:
conn.execute ("INSERT INTO TABLE (FIELD1) VALUES ('NAME') WHERE ID LIKE '"&VarName&"' ")
Does anyone have any idea why am I getting this error message?
conn.execute ("INSERT INTO TABLE (FIELD1) VALUES ('NAME')")
However, if I add the where clause I will get an error message saying ( Missing semicolon at end of SQL statement!
EXAMPLE:
conn.execute ("INSERT INTO TABLE (FIELD1) VALUES ('NAME') WHERE ID LIKE '"&VarName&"' ")
Does anyone have any idea why am I getting this error message?