P
PsyberFox
I've got the following SQL statement.
SQL1 = "Update Prod_Assembly_Data_1 " & _
"Set Operator = E.[Name] " & _
"from Prod_Assembly_Data_1 D, X01_Employees E " & _
"where D.ClockNo = E.ClockNo " & _
"go "
DoCmd.RunSQL SQL1
But when running it still gives syntax error. I've even tried to put the
whole string in one line, but no luck... putting it into a message box
produces the (i think) right string to be run.
Can anyone please help?
SQL1 = "Update Prod_Assembly_Data_1 " & _
"Set Operator = E.[Name] " & _
"from Prod_Assembly_Data_1 D, X01_Employees E " & _
"where D.ClockNo = E.ClockNo " & _
"go "
DoCmd.RunSQL SQL1
But when running it still gives syntax error. I've even tried to put the
whole string in one line, but no luck... putting it into a message box
produces the (i think) right string to be run.
Can anyone please help?