Hello
I have a table with several criteria whose percentage I want to update every time I want to remove / add a client
Here’s my table
Criteria / Client / Percentage / Quantity
C0001 CLI0100 50% 20
C0001 CLI0200 50% 20
C0002 CLI0050 100% 35
C0003 CLI0042 33% 4
C0003 CLI0015 33% 4
C0003 CLI0400 33% 4
…
i want to create an “Update” Query that should update the “Percentage” field every time i add or remove a client (in accordance with the criteria). For instance, if i remove CLI0100 from C0001, the Query should automatically calculate C0001's percentage to 100%, since I now have that criteria (C0001) with only one Client (CLI0200), with Quantity = Total (for that criteria)
I tried to create this Update query while creating another query that could give me the total amount for each criteria (Sum), so that I could divide Quantity / SUM Quantity to give me the new Percentage. Unfortunately, every time I try to run this query the access says that “operation must use an updateable query”.
I tried to look for help on the web and almost every page says that I cant run this if I have a query with SUM. Is that correct?
Without resorting to SQL, how can I run this update query? Is there a way?
Thanks in advance
Bruno