Results 1 to 4 of 4
  1. #1
    two_smooth's Avatar
    two_smooth is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    19

    Resource Utilization Report

    I have created a MS Access database that have many records. Using the following data fields how do I create a Report showing resource utilization by week?


    • Last Name
    • First Name
    • Week 1
    • Week2
    • Week3
    • Week4
    • Week5


    I need to know who's (by Week Number and Last Name, First Name) is assigned to work, for example:
    Week1
    Tom Jones
    John Smith
    Jerry Rice

    Week2
    Mike Higgins
    Yolanda Mendez
    Terrance Perkins

    Week3, Week4 & Week5 etc.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    If you have a field for each week, this is not a normalized data structure. What data type are the week fields - Yes/No? How many week fields are there - 52?

    Data structure should be:

    tblEmployees
    EmpID (primary key)
    LastName
    FirstName

    tblData
    EmpID (foreign key)
    WeekStartDate
    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
    two_smooth's Avatar
    two_smooth is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Feb 2010
    Posts
    19
    June7, for each record the record id data field is the primary key. The wekk1, week2, week3, week4 and week5 contain alphanumeric data (floor or warehouse are the values). So, the report should reflect the following (please note there is one record for each resource, it may have multiple weeks assigned):

    Report Heading - Resource Utilization by Week

    Sub-Heading - Week1
    Tom Jones Floor
    John Smith Floor
    Jerry Rice Warehouse

    Sub Heading - Week2
    Mike Higgins Warehouse
    Yolanda Mendez Warehouse
    Terrance Perkins Floor

    Sub Heading Week3
    XXXXXXXXX Floor
    XXXXXXXXX Warehouse

    Sub Heading - Week4
    XXXXXXXXX Floor
    XXXXXXXXX Floor
    XXXXXXXXX Floor

    Sub Heading - Week5
    XXXXXXXXX Warehouse
    XXXXXXXXX Floor
    XXXXXXXXX Warehouse

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    The data structure is not compatible with that output. What you currently have is essentially what would be the result of a CROSSTAB. To reconstruct will require a UNION query, which essentially results in a normalized structure.

    SELECT LastName, FirstName, "Week1" AS Period, Week1 AS Location FROM tablename
    UNION SELECT LastName, FirstName, "Week2", Week2 FROM tablename
    repeat for each subsequent week field ...;

    Use that query as the source for report and apply Grouping & Sorting as desired.
    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. System resource exceeded
    By ahmed_ae in forum Queries
    Replies: 1
    Last Post: 08-01-2013, 12:53 AM
  2. Using Access as a Resource Management Tool
    By Datech in forum Access
    Replies: 3
    Last Post: 05-21-2013, 01:17 PM
  3. Append New Resource if VBYes help
    By Lorlai in forum Programming
    Replies: 2
    Last Post: 04-03-2013, 08:08 AM
  4. Excess Resource (MSDB)
    By mei909 in forum Programming
    Replies: 1
    Last Post: 09-04-2011, 12:15 AM
  5. Resource for using linking tables with forms?
    By narayanis in forum Forms
    Replies: 5
    Last Post: 05-18-2008, 04:11 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