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

    Time Off Requests: querying multiple time off requests per day per employee to figure out schedule


    Hopefully I can explain this well....

    I have 3 Tables I need to query from:

    Agents (which houses employees names and reporting numbers)
    SchedulewithDates (Which includes employees normal shifts by date)
    PTO Schedule (Which links to a Sharepoint list where employees enter their time off requests)

    So, what I need to do is look at those tables to determine what the actual schedule is. Currently, I am pulling the normal shifts in my query and then using SQL to pull in the time off categories, times and dates (from the PTO Schedule table). Here is the problem... Often times people have more than one request per day. Sometimes they leave and come back for multiple doctors appointments, and we also include meetings and training in the PTO Schedule. Each request is it's own record in the PTO Schedule table. I need a way to pull in all of their time off requests for that day so then I can have it determine what each individual employees schedule for that day will be and so that I can count how many agents we have here per hour. We do customer service so it is important for us to know how many people we have taking calls each hour. I can pull all of their PTO requests with a query, but I'm not sure how to make them all list as one record in my query which also includes their normal schedule (SchedulewithDates) and then calculates the their correct scheduled time.

    I have been mulling this over and I'm just hitting a wall figuring out how to do it.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    well it is complex. first you need to establish the most granular time period...perhaps an hour - then you must generate a record for each person for each period they are scheduled within a day. that record perhaps is just a check box, date, period. then you need to generate an 'uncheck' for each leave request.

    then you can count

    there is of course no way around multiple duplicate or overlapping requests - these must be cleaned out or prevented from being entered in the first place....

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

Similar Threads

  1. Trying not to Schedule Classes around Lunch Time
    By boywonder381 in forum Programming
    Replies: 3
    Last Post: 09-12-2014, 03:43 AM
  2. Replies: 1
    Last Post: 09-21-2013, 10:39 PM
  3. Vacation Requests
    By MFS in forum Queries
    Replies: 3
    Last Post: 07-09-2011, 09:03 PM
  4. Time Schedule display in access
    By snoopy2003 in forum Database Design
    Replies: 3
    Last Post: 03-23-2011, 04:41 PM
  5. Replies: 2
    Last Post: 08-29-2010, 12:30 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