Results 1 to 4 of 4
  1. #1
    skwilliamson is offline Novice
    Windows Vista Access 2003
    Join Date
    Dec 2009
    Posts
    3

    Display all records

    I have a main table "tblEmp" with a list of all employees. I also have a table "tblReprints" with individual errors detailed by person. Not every employee will have errors. I would like to run a query to display all employees and their errors.

    For example:
    tblEmp contains Name1, Name2, Name3 and Name4

    tblReprints contains 2 records (errors) for Name1 and 1 record (error) for Name2.



    The query would display something like this:
    Employee Errors
    Name1 2
    Name2 1
    Name3 0
    Name4 0

    If an employee doesn't have any errors, the query would display 0

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Create a new query and add the 2 tables and select the join which shows all the records from tblEmp and ony those records from tblReprints where the fields match.
    Add the unique ID form both tables
    Switch on grouping.
    Do a group by on the tblEmpID field
    Do a count on the tblReprints ID field

  3. #3
    skwilliamson is offline Novice
    Windows Vista Access 2003
    Join Date
    Dec 2009
    Posts
    3
    Thanks for the help.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is your issue resolved? Are you ready to follow the link in my sig and mark this thread as Solved?

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

Similar Threads

  1. Display last five records only
    By premdasp in forum Queries
    Replies: 3
    Last Post: 11-18-2009, 11:53 AM
  2. Subform records wont display
    By taylorosso in forum Forms
    Replies: 10
    Last Post: 10-09-2009, 08:59 AM
  3. Combo Box Display
    By ssaucedo in forum Reports
    Replies: 17
    Last Post: 08-10-2009, 05:52 PM
  4. checkboxes to display records
    By jamie123 in forum Forms
    Replies: 1
    Last Post: 05-13-2009, 10:43 AM
  5. Report to display multiple records by date.
    By af01waco in forum Reports
    Replies: 1
    Last Post: 03-21-2009, 02:12 PM

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