Operation must be an updatable query ERROR

Newbie_me

New member
Local time
Today, 00:15
Joined
Feb 5, 2021
Messages
11
Hello guys,

The newbie needs your help once again, I do have a Update query wherein i have a criteria involving a "SumOfQty" . However, it prompts me with "Operation must be an updatable query" error.
I tried to change it with the field "Qty" from the table and it works fine but i need the sum of quantity to meet the criteria.
I have no idea of the reason behind it. Is there any workarounds? Thanks in advance ;)
 
Normally aggregate queries are not updateable queries. Thus it makes the insert not updateable. You can replace the sumofqty with a dsum and pass in the criteria.

 
Normally aggregate queries are not updateable queries. Thus it makes the insert not updateable. You can replace the sumofqty with a dsum and pass in the criteria.

I will give it a try. Thanks!
 
Typically you would not want to store a calculated value. It violates second normal form and leads to data anomalies. The best solution is usually to calculate the sum as you need it.

If you can tell us more about the requirement, we'll have a better chance of coming up with a good solution.
 

Users who are viewing this thread

Back
Top Bottom