Hi,
I am running a SQL script through VBA with the runSQL command.
Basically, I am updating fields, 1 and a time, and checking to see if that field value is null... if it is, then update the field value.
However, I keep getting an error associated with the syntax of the SQL statement. Here is the statement, as it it is in VBA.
DoCmd.RunSQL ("UPDATE ProjectsLink INNER JOIN ProjectsT ON ProjectsLink.ID2 = ProjectsT.ID2 SET ProjectsT." & strQuery(i) & " = [ProjectsLink]." & strQuery(i) & " WHERE (((ProjectsT." & strQuery(i) & ") Is Null));")
strQuery(i), is the name of each field that I am updating. I can't figure out where... but somewhere in this is a syntax issue and I have no idea where.
Any help is appreciated.
Thanks,