Results 1 to 2 of 2
  1. #1
    spyldbrat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2015
    Posts
    73

    Using Crosstab and showing data for the same day?

    Hi.



    I am trying to create a database that needs to show all information for each employee on the same row. I am creating multiple crosstabs and then creating one big query based off the crosstabs. I have come across a situation where I have two of the same "Category" with different dates for the same period I am creating the crosstab. Is there a way for me to show all the categories listed in a Query?

    This what I currently see on the Excel Sheet I am importing from:
    Employee Number FirstName LastName Category Week Day Violation Date
    15135 Employee Name #1 Other (See Notes) Wednesday 08/19/15
    15135 Employee Name #1 Late Wednesday 08/19/15
    15135 Employee Name #1 Late Thursday 08/20/15

    This is how I need to see it. I don't really need the "Week Day" column. This was added because I thought it would be easier to show all the data.

    Employee Number FirstName LastName Category Week Day Violation Date Category Day of Week Violation Date Category Day of Week Violation Date
    15135 Employee Name #1 Other (See Notes) Wednesday 08/19/15 Late Wednesday 08/19/15 Late Thursday 8/20/2015

  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,641
    Don't think crosstabs will accomplish: http://allenbrowne.com/ser-67.html

    Options:

    1. http://allenbrowne.com/func-concat.html

    2. VBA code and writing records to temp 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. CrossTab w/ Data Ranges
    By mrmmickle1 in forum Access
    Replies: 4
    Last Post: 07-26-2015, 07:46 AM
  2. Replies: 15
    Last Post: 04-16-2014, 01:15 PM
  3. Replies: 4
    Last Post: 02-27-2012, 10:29 AM
  4. Showing Columns & Rows in Crosstab query
    By coach32 in forum Queries
    Replies: 6
    Last Post: 09-11-2011, 07:01 PM
  5. '.' showing as '_' in crosstab query
    By AndyK in forum Queries
    Replies: 3
    Last Post: 04-13-2011, 10:41 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