Hi,
Please help me as I am trying to create a query which will count up the total of various fields.
For example say I had a database of fruit. Now I wanted to count up how many apples I had and also how many oranges I had and display these in a report. I have managed to to get a query which does this using UNION but it means that the totals appear in the same column (only one column) in the query.
So it would say:
CountofFruitType
11
28
11 might be apples and 28 might be oranges but I want a separate column for each:
CountofApples CountofOranges
11.......................28
I hope this all makes sense. Sorry for using fruit but it seemed the easiest!!
Many thanks in advance,
Paul.
Please help me as I am trying to create a query which will count up the total of various fields.
For example say I had a database of fruit. Now I wanted to count up how many apples I had and also how many oranges I had and display these in a report. I have managed to to get a query which does this using UNION but it means that the totals appear in the same column (only one column) in the query.
So it would say:
CountofFruitType
11
28
11 might be apples and 28 might be oranges but I want a separate column for each:
CountofApples CountofOranges
11.......................28
I hope this all makes sense. Sorry for using fruit but it seemed the easiest!!
Many thanks in advance,
Paul.
Last edited: