Trying to get this query right where it takes in variables to update the records. I tried playing around with the quotation marks and either I would get "Enter a parameter value" dialogue screen or "Syntax error (Missing Operator)" error.
updateOriginalBudget_SQL = "UPDATE SubPhases SET OriginalBudget=" & matchBudget & " " & "WHERE ShopCode=" & elemShopCode & ";"
DoCmd.RunSQL updateOriginalBudget_SQL
matchBudget is an integer and elemShopCode is a String. If I just write a simple query like:
"UPDATE SubPhases SET OriginalBudget=5 WHERE ShopCode='344S-23';"
it'll work with no issues. Any idea what I am doing wrong here?