I have a table with two columns that I need to get the data from.
Priority 0 is a blank (if they don't select anything)
Priority 6 is a header and will always be zero
Now, I want the report to display the sums of each of the prioritys. So for the example above, I want it to display the following results:
1 - 470.00
2 - 20.00
3 - 60.00
4 - 125.00
5 - 0.00
I can't for the life of me do it!!!
I would have thought it would be easy!!
INFO: the database will only hold one instance of each of the above. (unline a database!!) there will not be any repeats for different sites.
Any help would be greatly appreciated
Aubs
Code:
| Element | Priority | Cost |
|---------|----------|--------|
| A | 0 | 0.00 |
| B | 6 | 0.00 |
| C | 1 | 100.00 |
| D | 1 | 30.00 |
| E | 1 | 70.00 |
| F | 2 | 20.00 |
| G | 4 | 40.00 |
| H | 3 | 30.00 |
| I | 3 | 30.00 |
| J | 4 | 20.00 |
| K | 1 | 70.00 |
| L | 0 | 0.00 |
| M | 4 | 20.00 |
| N | 4 | 45.00 |
| O | 6 | 00.00 |
| P | 1 | 200.00 |
Priority 0 is a blank (if they don't select anything)
Priority 6 is a header and will always be zero
Now, I want the report to display the sums of each of the prioritys. So for the example above, I want it to display the following results:
1 - 470.00
2 - 20.00
3 - 60.00
4 - 125.00
5 - 0.00
I can't for the life of me do it!!!
I would have thought it would be easy!!
INFO: the database will only hold one instance of each of the above. (unline a database!!) there will not be any repeats for different sites.
Any help would be greatly appreciated
Aubs