SQL update query for balances using Access raises 'Operation must use an updateable query' -
i have following query (ms access 2010) i'm trying use update table running balance:
update accounts set a.currentbalance = (select sum(iif(c.categoryid = 2,t.amount * -1, t.amount)) + (select a1.openingbalance accounts a1 a1.accountid = a.accountid) totalamount transactions t inner join ( transactiontypes tt inner join categories c on c.categoryid = tt.categoryid) on t.transactiontypeid = tt.transactiontypeid); the tables used are:
a work around "query must use updateable query" use temporary table , update final target data based on aggregated data in temporary table. in case, mwolfe suggests, have aggregate function in inner select query. workaround provide quick fix situation, has me.
ref: http://support.microsoft.com/kb/328828
this article helped me understand specifics of situation , provided work around: http://www.fmsinc.com/microsoftaccess/query/non-updateable/index.html
Comments
Post a Comment