Results 1 to 2 of 2
  1. #1
    Wahapainan is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    1

    Query that assigns employees to an appointment in 10 minute increments.

    I'm trying to complete a project in Access that is clearly beyond my skill level and could use some help.

    I've got a query that shows all our employees (100+) by seniority. Now I'm trying to figure out how to set the query to start at the first employee with 11/1/2015 8:00AM and in 10 minute increments assign each employee a meeting time to select annual leave for next year. The trick is to schedule them from 8:00AM - 4:30PM with nobody from 12PM-12:30PM and if they are after 4:30PM start the next day.

    I was thinking I could call a function from the query but am having issues with getting this started.

    Thanks



  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    Calling function from query will not accomplish what you want. You need to create records.

    Options:

    1. Write records to table by opening and manipulating recordsets in VBA with looping structure.

    2. Build a table of all possible 10-minute increments, build another table of all possible dates - now build a query that includes those tables as well as the employees table, there will not be a JOIN clause and this will force every record of each table to associate with each record of other tables resulting in records of every possible combination of 10-minutes, dates, employees. This is not an updatable query (cannot edit). It can be used as a source for report or to create records in table.
    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: 2
    Last Post: 09-23-2015, 02:50 PM
  2. Replies: 4
    Last Post: 07-31-2015, 07:24 PM
  3. Report that auto assigns check numbers
    By jonathangpark in forum Reports
    Replies: 11
    Last Post: 04-22-2014, 02:58 PM
  4. Replies: 1
    Last Post: 02-22-2012, 04:59 PM
  5. Replies: 30
    Last Post: 01-16-2012, 05:49 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