Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 18th, 2012, 06:33 PM
MikeKnight MikeKnight is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 4 MikeKnight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 36 sec
Reputation Power: 0
Getting the Access report to display query counts?

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

Reply With Quote
  #2  
Old October 18th, 2012, 09:01 PM
Sharon494 Sharon494 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 5 Sharon494 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 10 sec
Reputation Power: 0
What I have

Reply With Quote
  #3  
Old October 19th, 2012, 07:14 PM
MikeKnight MikeKnight is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 4 MikeKnight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 36 sec
Reputation Power: 0
I forgot to add, I also have this cross-posted at:
  • microsoft answers
  • aspfree
  • access-programmers
  • accessforums

Reply With Quote
  #4  
Old October 19th, 2012, 08:00 PM
June7's Avatar
June7 June7 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Location: The Great Land
Posts: 256 June7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 9 h 29 m 29 sec
Reputation Power: 5
Should provide links to those crosstab threads.
__________________
I like to know if my suggestion helped you. One way to let me know is by clicking scales at top right corner of post.
Debug!Debug!Debug!http://www.cpearson.com/excel/debug.htm

Reply With Quote
  #5  
Old October 19th, 2012, 09:14 PM
MikeKnight MikeKnight is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 4 MikeKnight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 36 sec
Reputation Power: 0
I'm sorry but it looks like I am not allowed to post links in this forum. Too few posts, I guess?

Reply With Quote
  #6  
Old October 20th, 2012, 03:54 PM
June7's Avatar
June7 June7 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Location: The Great Land
Posts: 256 June7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 9 h 29 m 29 sec
Reputation Power: 5
Can always just omit the http:// prefix and post remainder as text. Although I can understand not wanting to if the url is very long.

Reply With Quote
  #7  
Old October 30th, 2012, 01:44 PM
MikeKnight MikeKnight is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 4 MikeKnight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 36 sec
Reputation Power: 0
-(solved)-

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Getting the Access report to display query counts?


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap