Hi,
I did a search, but didn't find anything similar to this - so here goes:
What I would like to do if possible, is show totals from a group footer in the Report Header. I've set up just ONE group using the sorting and grouping section. It is grouped on the Due_Date field. I used a text box named txtRecordCount, with the ControlSource set to "=1" with the running sum set to "Over Group". This shows the count of each record in a group. Then in the group footer, I have a text box named txtGroupTotal, with the ControlSource set to "=[txtRecordCount], and this is showing the total # of records in each group.
Both of these text boxes are working fine, and display the proper values. My first question is this - is there a way to get the # of different groups there are, ie the # of different Due_Dates? I suppose I could get it by getting the Count of the # of distinct Due_Dates - but I was wondering if there is already a function that returns this group count.
The second question, (once I know the # of distinct groups) is whether it's possible to show these counts in the Report Header? For example, I would like to show:
10 Due by 9-25-04
7 Due by 10-1-04
12 Due by 10-8-04
It would have to loop through the # of groups to determine the correct # of labels or text boxes to put in the Report Header.
If anyone has any suggestions, I would appreciate it. Thanks!
I did a search, but didn't find anything similar to this - so here goes:
What I would like to do if possible, is show totals from a group footer in the Report Header. I've set up just ONE group using the sorting and grouping section. It is grouped on the Due_Date field. I used a text box named txtRecordCount, with the ControlSource set to "=1" with the running sum set to "Over Group". This shows the count of each record in a group. Then in the group footer, I have a text box named txtGroupTotal, with the ControlSource set to "=[txtRecordCount], and this is showing the total # of records in each group.
Both of these text boxes are working fine, and display the proper values. My first question is this - is there a way to get the # of different groups there are, ie the # of different Due_Dates? I suppose I could get it by getting the Count of the # of distinct Due_Dates - but I was wondering if there is already a function that returns this group count.
The second question, (once I know the # of distinct groups) is whether it's possible to show these counts in the Report Header? For example, I would like to show:
10 Due by 9-25-04
7 Due by 10-1-04
12 Due by 10-8-04
It would have to loop through the # of groups to determine the correct # of labels or text boxes to put in the Report Header.
If anyone has any suggestions, I would appreciate it. Thanks!