I have a table with data which I want to update existing records in another table - I am importing legacy data.
I have created a query which extracts the data I need but I cannot get this to update the main table.
qryBudgetDataMatched - contains a record for USED line with 12 months data in columns.
tblBudgetsLocal - contains the records for ALL POSSIBLE line entry with 12 months blank columns.
i want the data in qryBudgetDataMatched to update tblBudgetsLocal
My current SQL is:
I get the error 'Operation must use an updateable query'
I have created a query which extracts the data I need but I cannot get this to update the main table.
qryBudgetDataMatched - contains a record for USED line with 12 months data in columns.
tblBudgetsLocal - contains the records for ALL POSSIBLE line entry with 12 months blank columns.
i want the data in qryBudgetDataMatched to update tblBudgetsLocal
My current SQL is:
Code:
UPDATE qryBudgetDataMatched INNER JOIN tblBudgetsLocal ON (qryBudgetDataMatched.NurseryMatch = tblBudgetsLocal.NUMBER) AND (qryBudgetDataMatched.AccountMatch = tblBudgetsLocal.intChartHeaderID) SET tblBudgetsLocal.Month1 = qryBudgetDataMatched.month1, tblBudgetsLocal.Month2 = qryBudgetDataMatched.month2;
I get the error 'Operation must use an updateable query'