I have a table called test with a column of type number (Long Integer) and name CHANGEME. This column has values ranging from null to large integers. I'm attempting to select all null values and update them to 0. I'm doing this in VBA code.
SQL = "UPDATE test SET test.CHANGEME = 0 WHERE test.CHANGEME Is Null" DoCmd.RunCommand SQL This produces the type mismatch error.
However if I create a query in the user interface and copy and paste the SQL statement and add a ; at the end and remove the "'s it works perfectly.
Any thoughts?