I'm running a report based on one query, I'd like to add another field but it's on another query. Can I call that query into the report? I'm doing that but I keep getting the parameter box.
Any ideas?
SELECT Deployers.Deployers, Deployers.Population, Sum(Statistics.Tot_calls_by_Month) AS System_Total, Deployers.Months_Operational, Sum([Tot_calls_by_Month])/([Months_Operational]) AS Averagecallpermonth, Sum([Tot_calls_by_Month])/([Months_Operational])/([Population]) AS Calls_per_Population
FROM Deployers LEFT JOIN Statistics ON Deployers.Deployers = Statistics.Deployers
GROUP BY Deployers.Deployers, Deployers.Population, Deployers.Months_Operational;
I got all that to show on the report
Then I wanted to add two more fields from the table Statistic ( same table)
and in the design report view I created a text box and called this query from the control source
SELECT T.Deployers, T.Total, S.MonthYear
FROM Statistics AS S INNER JOIN [SELECT S.Deployers,
Max(S.Tot_calls_by_Month) As Total
From Statistics As S
GROUP BY S.Deployers]. AS T ON (S.Tot_calls_by_Month = T.Total) AND (S.Deployers=T.Deployers);
Let me see if I follow you, make changes to the second query. Then, call the second one into the report. They are two separate queries. I did the changes to the second one and I'm still getting the parameter box when I assign that query to the contol box. It looks something like this,
=(PeakMonthCallRD2.Total)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.