I am trying to run one update query to update 3 fields in 2 tables based on the users input.
Here is the SQL for the query:
UPDATE [T_User/Requestor] INNER JOIN T_InventoryBilling ON [T_User/Requestor].U_UserID = T_InventoryBilling.IB_UserCode SET T_InventoryBilling.IB_DepartmentNumber = UCase([T_User/Requestor].[U_DeptNumber]), T_InventoryBilling.IB_Physical_Location = UCase([T_User/Requestor].[U_DeptNumber]), [T_User/Requestor].U_DeptNumber = UCase([Enter New Dept No])
WHERE ((([T_User/Requestor].U_UserID)=[Input ID]));
The problem is the first record does not update to the new department number. I have tried putting the input for the new department first and it makes no difference. There are 5 records affected in the query and the first record always stays the original department number. How do I reference the input box for all 3 fields being updated without having the user enter the data 3 times?
Any Ideas???
Here is the SQL for the query:
UPDATE [T_User/Requestor] INNER JOIN T_InventoryBilling ON [T_User/Requestor].U_UserID = T_InventoryBilling.IB_UserCode SET T_InventoryBilling.IB_DepartmentNumber = UCase([T_User/Requestor].[U_DeptNumber]), T_InventoryBilling.IB_Physical_Location = UCase([T_User/Requestor].[U_DeptNumber]), [T_User/Requestor].U_DeptNumber = UCase([Enter New Dept No])
WHERE ((([T_User/Requestor].U_UserID)=[Input ID]));
The problem is the first record does not update to the new department number. I have tried putting the input for the new department first and it makes no difference. There are 5 records affected in the query and the first record always stays the original department number. How do I reference the input box for all 3 fields being updated without having the user enter the data 3 times?
Any Ideas???