boone35223
Technical User
Using Access 2000, I am trying to update a field of an existing table with the results of a query. The results of the query include a primary key field, the current values in the table, and the desired values for the table. The update query does not seem to fit since the desired values are not unique. The append query may be appropriate but I am not sure. Can someone point me in the right direction?
Following is the SQL view of the query (the query is actually pulling some information from another query instead of the table I wish to change):
The relevant table structure is as follows:
employee_incomes:Table
pr_ssn (primary key, text)
pr_type_id (primary key, text)- various income and deduction codes which includes LT2, the code I wish to update/change.
pr_type_kind (primary key, text)
pr_inc_rate (currency)
pr_inc_this_onetime (currency)
I wish to update the pr_inc_this_onetime field for pr_inc_categ "LT2" only from its current value of zero to the value CorrLT2 from the query.
Thanks.
Following is the SQL view of the query (the query is actually pulling some information from another query instead of the table I wish to change):
Code:
SELECT qMB_Wage_Summary_Step2.pr_check_to, qMB_Wage_Summary_Step2.pr_emp_name, qMB_Wage_Summary_Step2.pr_emp_firstname, qMB_Wage_Summary_Step2.pr_emp_dept, qMB_Wage_Summary_Step2.[Jefferson County Wages], qMB_Wage_Summary_Step2.[LT2-], [Jefferson COunty Wages]*1 AS JeffCo, +[JeffCo]*0.0045 AS CorrLT2, +[CorrLt2]+[LT2-] AS LT2OneTime, +[CorrLT2]/[JeffCo] AS Rate
FROM qMB_Wage_Summary_Step2
GROUP BY qMB_Wage_Summary_Step2.pr_check_to, qMB_Wage_Summary_Step2.pr_emp_name, qMB_Wage_Summary_Step2.pr_emp_firstname, qMB_Wage_Summary_Step2.pr_emp_dept, qMB_Wage_Summary_Step2.[Jefferson County Wages], qMB_Wage_Summary_Step2.[LT2-];
The relevant table structure is as follows:
employee_incomes:Table
pr_ssn (primary key, text)
pr_type_id (primary key, text)- various income and deduction codes which includes LT2, the code I wish to update/change.
pr_type_kind (primary key, text)
pr_inc_rate (currency)
pr_inc_this_onetime (currency)
I wish to update the pr_inc_this_onetime field for pr_inc_categ "LT2" only from its current value of zero to the value CorrLT2 from the query.
Thanks.