Results 1 to 2 of 2
  1. #1
    jakeman is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Location
    Connecticut
    Posts
    8

    Query to bring zero hours reported into result set

    Hello - I have a query dilemma. I pull employee time out of a database each week that tells me how many hours an employee worked. The problem with the database is that it doesn't tell me which employees failed to report time, it only tells me which employees reported time.

    Now, using an employee census table, I compare the time results by employee against my employee census table to figure out which employees failed to report any time. But this process is kind of labor intensive and somewhat error prone.

    I've been trying to tinker around with creating a query that will give me the results of those folks who reported time and for those folks who didn't report time (by displaying zeros), but I cannot get this to work at all. I created a third table which is a calendar table and lists all of the workdays for the year. In my mind, I think there must be a way to combine the time results table (common fields are employee ID and date reported), census table (common field is employee ID), and the calendar table (common field is date).



    Is there a way to create a query that aggregates actual time reported for each employee by date with time not reported by employee by date? Basically, if an employee failed to report time, I'd like to know the date and in the time reported field, list a zero. Maybe this has to happen in two or more steps?

    Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You have a master table of all employees? Create query that joins data to the master, jointype 'Include all records from Employees ...'
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-08-2012, 01:42 PM
  2. Replies: 4
    Last Post: 08-06-2012, 10:25 AM
  3. calculated hours per week in a query Help???
    By manos39 in forum Queries
    Replies: 0
    Last Post: 02-16-2011, 04:17 AM
  4. discrepancy in data reported
    By jrobgk1 in forum Reports
    Replies: 1
    Last Post: 11-30-2010, 11:34 AM
  5. Grouping hours query
    By DMP84 in forum Queries
    Replies: 0
    Last Post: 08-26-2010, 07:15 AM

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