Skip to content
Advertisement

Run time error 3144 from UPDATE statement

I get a run time 3144 syntax error. Can’t seem to locate the error.

enter image description here

Advertisement

Answer

Consider using a parameterized query with MS Access’ QueryDefs to accurately specify the data types of your binded values and avoid concatenation and quote wrapping which renders hard to maintain code. Adjust below types as needed in PARAMETERS clause (compliant in Access SQL).

SQL (save as an MS Access stored query only once)

VBA (dynamically bind values to parameter placeholders)

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement