Results 1 to 5 of 5
  1. #1
    johnham40 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    6

    Help in creating a crosstab for scheduled dates in table ......Please

    I have a table called assignments. This table has resources dedicated to a task. The task has a startDate, EndDate, Duration, workperday and a ProjectID column
    I am trying to create a crosstab grouped by Resource. How do I get the table to start at the first date it occurs and spreads the EstWork evenly over through the EndDate Thanks in advance
    ProjectID RoleID Workperday StartDate EndDate EstWork Duration
    1 51 8 1/24/14 2/28/14 197 25
    1 51 8 1/14/14 1/17/14 25 3
    1 32 8 1/7/14 1/15/14 56 7


  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Probably with a lot of VBA code.

    Duration excludes weekends and holidays?

    What is Resource?

    What is EstWork - hours?
    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.

  3. #3
    johnham40 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    6
    Quote Originally Posted by June7 View Post
    Probably with a lot of VBA code.

    Duration excludes weekends and holidays?

    What is Resource?

    What is EstWork - hours?
    June7 thanks for getting back to me, unfortunately I was away from my PC, till now

    You are correct the duration should exclude weekends and holidays
    The resource is the RoleID (group responsible for the task)
    And you are correct again EstWork is the overall hours of the assignment

    Once again thanks for taking the time to look at this for me

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Still thinking this will require VBA and temp table. These threads discuss methods to generate records between a range of dates.

    https://www.accessforums.net/queries...nge-41313.html

    https://www.accessforums.net/program...ort-41142.html
    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.

  5. #5
    johnham40 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    6
    June7

    Thanks for the link I used that code and manipulated it to suit my needs
    Much appreciated

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

Similar Threads

  1. Replies: 8
    Last Post: 12-02-2013, 03:46 PM
  2. Replies: 4
    Last Post: 01-03-2013, 08:29 PM
  3. CrossTab Query with Moving Dates
    By wongray in forum Queries
    Replies: 1
    Last Post: 04-24-2012, 05:41 PM
  4. Help creating a crosstab query from a list
    By bloocie in forum Queries
    Replies: 3
    Last Post: 04-23-2012, 11:58 AM
  5. Soring dates in a crosstab
    By Nicolayd in forum Access
    Replies: 1
    Last Post: 07-12-2011, 08:42 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