Jumat, 03 Februari 2017

Re: [MS_AccessPros] Grouping and Sum on a report

 

Phucon-


Put that control in the footer of the Company.  That will count departments.

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 3, 2017, at 4:12 PM, saigonf7q5@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



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: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

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