I would appreciate help on figuring out what is wrong with the below vba query. The error message I am getting is "Too few parameters. Expected1." I set up a watch on the query and provided the watch results below also. I have tried many different syntax combinations on the WHERE clause and get other syntax error messages.
VBA query:
strSql = "UPDATE tblGrid SET " & varMonth & " = " & varHours & " WHERE (((tblGrid.SubAccount) = '" & varSubAccount & "'));"
Watch result:
"UPDATE tblGrid SET Month1Hrs = 11 WHERE (((tblGrid.SubAccount) = 'D6303.0.0.0.0'));"
VBA query:
strSql = "UPDATE tblGrid SET " & varMonth & " = " & varHours & " WHERE (((tblGrid.SubAccount) = '" & varSubAccount & "'));"
Watch result:
"UPDATE tblGrid SET Month1Hrs = 11 WHERE (((tblGrid.SubAccount) = 'D6303.0.0.0.0'));"