David R
10-23-2001, 12:54 PM
I am trying to summarize activity across several fields of an Access database. The setup is as follows:
There are 8 possible gifts to be given to clients. These are in a Lookup menu in each of 5 fields (GiftName1, GiftName2, etc) and each has a corresponding date field (DateGiven1, etc). The first column (and date) is always filled because that is how an entry gets created. The other four are sporadically filled in as someone gets more than one.
I didn't design the database originally. What I am asked to do is to summarize how many of each gift was given away for each month of the year. The gift may be in any of the 5 columns. I can do 5 separate queries and add up the totals for each column, but that seems cumbersome.
Another option that comes to mind is to create a query that stacks all the five columns into one, with the date fields still associated in the correct order. Then I can sort and group and summarize with no further difficulties.
Am I missing something elementary here? I have about 5 months Access experience so far, so it is very likely.
There are 8 possible gifts to be given to clients. These are in a Lookup menu in each of 5 fields (GiftName1, GiftName2, etc) and each has a corresponding date field (DateGiven1, etc). The first column (and date) is always filled because that is how an entry gets created. The other four are sporadically filled in as someone gets more than one.
I didn't design the database originally. What I am asked to do is to summarize how many of each gift was given away for each month of the year. The gift may be in any of the 5 columns. I can do 5 separate queries and add up the totals for each column, but that seems cumbersome.
Another option that comes to mind is to create a query that stacks all the five columns into one, with the date fields still associated in the correct order. Then I can sort and group and summarize with no further difficulties.
Am I missing something elementary here? I have about 5 months Access experience so far, so it is very likely.