I'm getting a syntax error in Update query via the where clause
sCommand = "UPDATE TABLE";
sCommand += "SET [Status] = '" + Row.StatusByOp + "' ";
sCommand += "WHERE [TABLE].[DataTime] = " + Row.DataTime+ ";"; //Missing operator on this line, not finding whats wrong with this line
Can someone assist me?
Update syntax via where clause
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

David SmithRank #999 · 2K reputationPosted Oct 11, 2010, 1:20 AM EDT
sCommand += "WHERE [TABLE].[DataTime] = #" + Row.DataTime+ "#;";