G
Guest
I'd like to have the total of each items.
Required style is shown below.
xGroup |A | B | C
----------------------------
01| 0 | 0 | 4
02| 0 | 2 | 4
an original table would be like this
xGroup | A | B | C
------------------------------
02 | 0 | 0 | 2
01 | 0 | 0 | 2
02 | 0 | 0 | 2
01 | 0 | 0 | 2
02 | 0 | 2 | 0
Items might be changed and increased in the future.
So, I thought the original table should have selective field about items.
and minimum number or fields.
[Data table]
xGroup | ITEMS | Q
--------------------------
02 | C | 2
01 | C | 2
02 | C | 2
01 | C | 2
01 | B | 2
Appending another [ITEM tables]
to be selected in a [ITEM] field on [Data table].
Then , for Sum up
Transfer query would be useful.
But Transfer query
omits unselected items count.
xGroup | B | C |
---------------------
01| 0 | 4 |
02| 2 | 4 |
How do I count(show) unselected items?
Or should I prepare each item fields?
Both way, VBA can adjust for required style of the total table .
any comment about "the basic of table design" or query(SQL)
I'd appreciate it .
Required style is shown below.
xGroup |A | B | C
----------------------------
01| 0 | 0 | 4
02| 0 | 2 | 4
an original table would be like this
xGroup | A | B | C
------------------------------
02 | 0 | 0 | 2
01 | 0 | 0 | 2
02 | 0 | 0 | 2
01 | 0 | 0 | 2
02 | 0 | 2 | 0
Items might be changed and increased in the future.
So, I thought the original table should have selective field about items.
and minimum number or fields.
[Data table]
xGroup | ITEMS | Q
--------------------------
02 | C | 2
01 | C | 2
02 | C | 2
01 | C | 2
01 | B | 2
Appending another [ITEM tables]
to be selected in a [ITEM] field on [Data table].
Then , for Sum up
Transfer query would be useful.
But Transfer query
omits unselected items count.
xGroup | B | C |
---------------------
01| 0 | 4 |
02| 2 | 4 |
How do I count(show) unselected items?
Or should I prepare each item fields?
Both way, VBA can adjust for required style of the total table .
any comment about "the basic of table design" or query(SQL)
I'd appreciate it .