Hi, I have a question about queries and reports. I've only been using Access for a day, so I'll try to make it as easy to follow as possible.
What I have:
-Table A is a list of solar panels, each with its own unique ID. The table has the installation date for each rack, labeled INSTALLDATE written as MM/DD/YYYY.
-Table B has the same list of solar panels with their unique ID's. The table has the district each panel is in, labeled COUNCILDISTRICT assigned a number 1 through 12.
Now what I want to to is make two reports that show two different things:
-Report A needs to show the number of solar panels that were installed in each district in 2012 only.
-Report B needs to show the number of solar panels that were installed in each district in 2012 each month.
I've created two queries that give me the information I need:
-Query A lists each council district in one column (labeled COUNCILDISTRICT) and the number of solar panels installed in 2012 in the next column (labeled COUNTOFINSTALLDATE1). I got this query by going in the design view making the following columns:
--Field: CouncilDistrict. Table: tblB. Total: Group By.
--Field: CountofInstallDate. Table: tblA. Total: Count.
--Field: Year([InstallDate]). Total: Group by. Criteria: 2012.
-Query B lists council districts, months (1-12), and the number of solar panels installed in that specific month in that district in 2012. I got this query by doing:
--Field: CouncilDistrict. Table: tblB. Total: Group by.
--Field: CountofInstallDate. Table: tblA. Total: Count.
--Field: Expr1: Month([InstallDate]). Total: Group by. Criteria: Between 1 and 12.
--Field: Year([InstallDate]). Total: Group by. Criteria: 2012. (Unchecked Show).
Now, for some reason I'm not able to get the reports to display the counts that the queries display. For Report A, which shows installations in 2012 in each district, I have the control source for the text box set to CountOfInstallDate after selecting it through the menu. Yet every time I click on the report, it asks me to enter a parameter value for CountOfInstallDate instead of giving the values from the query. The same thing happens in Report B, I can't get it to display the CountofInstallDate values for each month of 2012 in each district.
Any help on what I'm doing wrong? Thanks!