I have a report with 4 subreports. Each grouping of subreports gives me a total and I have multiple groupings in the report. I want a detailed summary of all these group totals. E.g.
Group A Total = $1000
Group B Total = $1500
Each subreport is based on a query and each query has a total. For two of the queries, the total is based on a multiplication of two fields (e.g. hours x rate) and the other two queries are simply based on one field. Because of the differences, I can't put the raw data fields in a union query (which is where I believe my problem arises).
I made these 4 queries into a Union All query, which gave me a list of all the totals. I then used this union query as the recordsource for another subreport in my main report. When I go into the recordsource query and sum my total field, the query works perfectly. It sums all my totals by the proper groupings. Now, when I go back to view my report, it asks for a parameter value for the total field.
I can't seem to find any way around this and am confused as to why the query runs fine when I'm in the recordsource but not when I'm running the report.
The frustrating part is when I preview my report, all the totals I want are there under each group, and I just want to have them also summarized in a list at the front of the report. Seems like it should be so simple, but I'm baffled. Any suggestions???
Group A Total = $1000
Group B Total = $1500
Each subreport is based on a query and each query has a total. For two of the queries, the total is based on a multiplication of two fields (e.g. hours x rate) and the other two queries are simply based on one field. Because of the differences, I can't put the raw data fields in a union query (which is where I believe my problem arises).
I made these 4 queries into a Union All query, which gave me a list of all the totals. I then used this union query as the recordsource for another subreport in my main report. When I go into the recordsource query and sum my total field, the query works perfectly. It sums all my totals by the proper groupings. Now, when I go back to view my report, it asks for a parameter value for the total field.
I can't seem to find any way around this and am confused as to why the query runs fine when I'm in the recordsource but not when I'm running the report.
The frustrating part is when I preview my report, all the totals I want are there under each group, and I just want to have them also summarized in a list at the front of the report. Seems like it should be so simple, but I'm baffled. Any suggestions???