Rabu, 08 Februari 2017

Re: [MS_AccessPros] Grouping and Sum on a report

 

Phucon-


What do you see if you put a text box with:

=Count(DepartmentID)

.. in the Company footer?

John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)




On Feb 8, 2017, at 8:18 PM, saigonf7q5@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



So far the report output giving a grand total (in the report footer), which is the total number of departments of all companies. 


One more thing that I want to archive is to get the total department for each individual company. For example: Company A has 1 department, Company B has 2 departments and so on... 


I added another text box in the company footer and have been playing with that, however, still could not figure out how...


Thank you

 Phucon




Company A


 Department a


  Employee Name    First          Mi          Last
     xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
     xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
     xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
  
Company A has 1 department
 ----------------------------------------------------------------------

Company B


 Department b


  Employee Name    First          Mi          Last
     xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
     xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
     xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx


 Department c


  Employee Name    First          Mi          Last
     xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
     xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
     xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx


 Company B has 2 departments
 ----------------------------------------------------------------------

Total Departments : 3




__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar