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

    Want to make reports regarding office roster

    Hi,



    I am trying to make weekly reports from a given roster. For example I have following information;
    Name Monday Tuesday Wednesday Thursday Friday Saturday Sunday
    Employee A Overnight Day Off Day Off Evening Evening Morning Overnight
    Employee B Day Off Day Off Morning Morning Morning Evening Morning
    Employee C Overnight Overnight Day Off Day Off Morning Overnight Overnight
    Employee D Overnight Overnight Overnight Overnight Overnight Day Off Day Off

    I tried to generate following weekly reports for a month.

    2 Feb Monday
    Name Shift Arrival Time Signeture
    Employee A Overnight
    Employee B Day Off
    Employee C Overnight
    Employee D Overnight
    3 Feb Tuesday
    Name Shift Arrival Time Signeture
    Employee A Day Off
    Employee B Day Off
    Employee C Overnight
    Employee D Overnight

    Would you please help me about this. please suggest me how to make it.

  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,953
    Your roster table is not a normalized data structure. Rearranging into the vertical structure can be done with VBA code to create records in a table or with a UNION query.

    SELECT [Name], [Monday] AS Shift FROM tablename
    UNION SELECT [Name], [Tuesday] FROM tablename
    UNION SELECT [Name], [Wednesday] FROM tablename
    UNION SELECT [Name], [Thursday] FROM tablename
    UNION SELECT [Name], [Friday] FROM tablename
    UNION SELECT [Name], [Saturday] FROM tablename
    UNION SELECT [Name], [Sunday] FROM tablename;

    There is no designer or wizard for UNION query, must type into SQL View of query builder. Cannot edit data via UNION query.
    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: 4
    Last Post: 08-19-2014, 12:20 PM
  2. Replies: 0
    Last Post: 06-20-2012, 05:09 AM
  3. Replies: 1
    Last Post: 09-03-2011, 07:01 PM
  4. Personnel Roster with 4 sections
    By tat2z_21 in forum Access
    Replies: 8
    Last Post: 01-20-2011, 04:56 AM
  5. Link Meeting with Roster?
    By Guinea in forum Access
    Replies: 58
    Last Post: 09-03-2010, 12:29 AM

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