C
ckarlen
Guest
I've done a bit of research on this topic and I cannot find a solution. I am using Access 2002.
I have created a query that sums up all the monthly costs of the year for each category of the business.
SELECT YTD2005.ProdServDrill3, Sum(YTD2005.AmountBilled) AS SumOfAmountBilled
FROM YTD2005
WHERE (((YTD2005.ProdServDrill1)="Applications") AND ((YTD2005.ProdServDrill4) Like "ADS*"))
GROUP BY YTD2005.ProdServDrill3
ORDER BY YTD2005.ProdServDrill3;
This query works perfectly on its own and returns two columns (group description [ProdServDrill3] and year total [SumOfAmountBilled] for each group).
I want to use the SumOfAmountBilled results in a Totals column in my report. To do so I set the Data Control Source of the Totals textbox to the SumOfAmountBilled query result. However, when I try to preview/generate the report it prompts me with a dialog box where the heading is "Enter Parameter Value" and the text in the dialog box is the name of my query with a text box underneath the text. Why do the results just not show up in the report like they do in the query? How can I eliminate "Enter Parameter Value" text box? Many thanks in advance.
I have created a query that sums up all the monthly costs of the year for each category of the business.
SELECT YTD2005.ProdServDrill3, Sum(YTD2005.AmountBilled) AS SumOfAmountBilled
FROM YTD2005
WHERE (((YTD2005.ProdServDrill1)="Applications") AND ((YTD2005.ProdServDrill4) Like "ADS*"))
GROUP BY YTD2005.ProdServDrill3
ORDER BY YTD2005.ProdServDrill3;
This query works perfectly on its own and returns two columns (group description [ProdServDrill3] and year total [SumOfAmountBilled] for each group).
I want to use the SumOfAmountBilled results in a Totals column in my report. To do so I set the Data Control Source of the Totals textbox to the SumOfAmountBilled query result. However, when I try to preview/generate the report it prompts me with a dialog box where the heading is "Enter Parameter Value" and the text in the dialog box is the name of my query with a text box underneath the text. Why do the results just not show up in the report like they do in the query? How can I eliminate "Enter Parameter Value" text box? Many thanks in advance.