I have a table with 2 columns - VarName and VarValue. I want to update the record where VarName is "ImportFullDate" a text string. The text string is stored in a variable in my VBA code as ImportFullDate.
I'm not sure if my quotes are off or if I have other things in this statement that are off.
I'm not sure if my quotes are off or if I have other things in this statement that are off.
Code:
DoCmd.RunSQL "UPDATE [tblVariables] SET [VarValue] = ImportFullDate WHERE [tblVariables].[VarName]='" & ImportFullDate & "'"