Results 1 to 2 of 2
  1. #1
    mjsabin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    2

    Angry Counting records

    Hey guys so I've been working with this huge data base. The tables consists of employee info such as salary, social security and so on. So the salary is paid through specific bonuses accounts depending on the position of the employee and i need a report showing the department to which they work and the amount of employees on each category(bonuses) and thats really the problem. Can i have access count this employees for me? And how can I do this i tried using Dcount and Count but im really not familiar Ive read a few articules on both of them but regardless of what i do is not working and I really need to get this done before the end of the week.

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    The short answer is yes you can. How depends on your data structure and your requirements which are not stated.
    but to give you an idea I'll use the following tables

    tblEmployee
    Employeeid Primary Key
    name
    dateofhire
    terminationdate
    departmentid Foreign Key to Department

    tblDepartment
    Departmentid Primary Key
    Departmentdesc

    Select Departmentdesc, Count(Employeeid)
    From tblemployee inner join tbldepartment on tblemployee.departmentid = tbldepartment.departmentid
    Where terminationdate is null
    Group by departmentdesc

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Counting No of records above the limit.
    By cap.zadi in forum Reports
    Replies: 5
    Last Post: 11-29-2011, 12:51 PM
  2. Replies: 3
    Last Post: 09-01-2011, 11:07 PM
  3. Counting Only Certain Records
    By jtphenom in forum Queries
    Replies: 9
    Last Post: 03-29-2011, 01:25 AM
  4. Counting Records
    By WhiteNite1971 in forum Access
    Replies: 1
    Last Post: 01-22-2011, 06:36 AM
  5. Counting records based on specified criteria
    By GrnISSO in forum Queries
    Replies: 2
    Last Post: 10-04-2007, 03:07 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums