Jumat, 03 Februari 2017

[MS_AccessPros] Grouping and Sum on a report

 

I am working on a report which contains company name, department name and employees... The report has the format as shown below. My current task is to add a total that counts the number of Departments.


I placed a text box in the Department Footer and have the control source as =count([Department]). However, it looks like it's totaling the number of employees not the department. What is the correct way to handle this?


Phucon.

 


Company 1


 Department 1

  Employee Name    First          Mi          Last
    xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
    xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
    xxxxxxxxxx x    xxxxxxxxxx   x          xxxxxxxxxx
 
 Total Department: 1
----------------------------------------------------------------------

Company 2

 Department 1

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

 Department 2

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

 Total Department: 2

__._,_.___

Posted by: saigonf7q5@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

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