F
forcefield via AccessMonster.com
Hi everyone,
I would like to have a “distinct’ query of all items in table A and sum its
quantity. This part is quite easy, Updating or appending the query result
to a new table B is my problem. If number of table A items increases I would
still like table B to be updated for the same item with a new sum and
appended in table B for a different item with a new sum. I think I probably
need a SQL or code to do it, but I am stucked.
Can some experts help? Thanks
Eg in table A
Item qty
Spanner 5
Screwdriver 6
Spanner 7
Wrench 2
Screwdriver 4
The final result in table B
Item Sum
Screwdriver 10
Spanner 12
Wrench 2
I would like to have a “distinct’ query of all items in table A and sum its
quantity. This part is quite easy, Updating or appending the query result
to a new table B is my problem. If number of table A items increases I would
still like table B to be updated for the same item with a new sum and
appended in table B for a different item with a new sum. I think I probably
need a SQL or code to do it, but I am stucked.
Can some experts help? Thanks
Eg in table A
Item qty
Spanner 5
Screwdriver 6
Spanner 7
Wrench 2
Screwdriver 4
The final result in table B
Item Sum
Screwdriver 10
Spanner 12
Wrench 2