A
AccessHelp
I have an employee table and a T&E table. I use an update query to update
the employee rates from the employee table to the T&E table. Rates change
every year. So I use the formula, if the week endings are in 2005, use Rate
05 from the employee table and so on. However, it's not working.
Please help. Below is my sql statement for my update query. Thanks.
UPDATE [T&E Table] LEFT JOIN EMPLOYEE ON [T&E Table].[Emp No] =
EMPLOYEE.EMPNUMBE SET [T&E Table].Rate = IIf([T&E
Table]![Weekend]>#12/31/2005#,[EMPLOYEE]![RATE 06],IIf([T&E
Table]![Weekend]<#1/1/2006#,[EMPLOYEE]![RATE 05],IIf([T&E
Table]![Weekend]<#1/1/2005#,[EMPLOYEE]![RATE 04],0)))
WHERE ((([T&E Table].ServNumber) Not In (50,51,53,92)));
the employee rates from the employee table to the T&E table. Rates change
every year. So I use the formula, if the week endings are in 2005, use Rate
05 from the employee table and so on. However, it's not working.
Please help. Below is my sql statement for my update query. Thanks.
UPDATE [T&E Table] LEFT JOIN EMPLOYEE ON [T&E Table].[Emp No] =
EMPLOYEE.EMPNUMBE SET [T&E Table].Rate = IIf([T&E
Table]![Weekend]>#12/31/2005#,[EMPLOYEE]![RATE 06],IIf([T&E
Table]![Weekend]<#1/1/2006#,[EMPLOYEE]![RATE 05],IIf([T&E
Table]![Weekend]<#1/1/2005#,[EMPLOYEE]![RATE 04],0)))
WHERE ((([T&E Table].ServNumber) Not In (50,51,53,92)));