I am attempting this query and getting a syntax error missing operator and cannot figure out why!
[Enter Service Number] and [Enter Date] are user inputs.
This query will eventually be used in a php code.
Please help.
Code:
UPDATE Temp_Allocation
SET a.Service_ID = p.Service_ID
FROM personnel p, temp_Allocation a
WHERE a.Service_ID=p.Service_ID
AND p.Service_No = [Enter Service Number]
AND [Date] = [Enter Date]
AND Duty_ID LIKE '2';
[Enter Service Number] and [Enter Date] are user inputs.
This query will eventually be used in a php code.
Please help.