Results 1 to 6 of 6
  1. #1
    bgwool is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Posts
    29

    Horizontal Report Formatting

    I have a report that currently displays like this:

    Employee ID Date Hours Worked Overtime
    Joe 7/15 5.3 0
    7/17 4.4 0
    7/18 6.2 0
    7/19 5.5 0

    Total = 21.2 Overtime = 0



    Mike 7/16 4.9 0
    7/17 6.2 0
    7/18 7.1 0
    7/19 4.3 0

    Total = 22.5 Overtime = 0
    etc.....

    I need it to display horizontally, like this:

    Joe 7/15 7/16 7/17 7/18 7/19 etc
    5.3 0 4.4 6.2 5.5

    Total = 21.2 Overtime = 0
    Mike 7/15 7/16 7/17 7/18 7/19 etc.
    0 4.9 6.2 7.1 4.3

    Total = 22.5 Overtime = 0
    ....

    I tried doing this with a report based on a cross-tab query, but it cuts the report off after ~15 date entries (at the page end, I think). Also, I can create a total value in the cross-tab query, but the report insists on placing it in line with the daily totals instead of letting me put it as a footer on the employee's name. Any help would be appreciated!

    (sorry about the formatting, hopefully it is clear how I would like the data displayed)

    Thank you -
    Nick

  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,931
    I've never built a report based on CROSSTAB, I haven't needed CROSSTABs in my dbs. I know they can be difficult. If you want to provide db for analysis, follow instructions at bottom of my post.

    EDIT: I actually have one report based on CROSSTAB, wasn't easy.
    Last edited by June7; 08-01-2014 at 03:26 PM.
    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
    bgwool is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Posts
    29
    Here is a copy of the DB. I removed last names as per request. Thank you very much for the help!
    Attached Files Attached Files

  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,931
    Dynamic parameter input popup prompts are just so annoying. Better to use unbound controls on a form and reference them as the inputs.

    I tried opening both of the crosstab reports and get slammed with 4 input popups. I enter some dates that I see from the TimeCards table, get error message and report fails to open.

    I never use query input popups and I NEVER use dynamic parameterized queries. I use VBA code to build filter criteria and apply to form or report. However, I understand the VBA approach might not work with CROSSTAB.
    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
    bgwool is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Posts
    29
    Yes, I've been having trouble with that as well. I will try to create a form where the user can input the start and end dates to filter the query/report. Thanks for the help so far. I will probably end up posting here to get help referencing the form controls in the queries. I will also re-post after I fix these issues.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I have needed to 'pivot' data where CROSSTAB could not meet my needs. Review: http://forums.aspfree.com/microsoft-...ry-322123.html

    More info on crosstabs
    http://allenbrowne.com/ser-67.html
    http://www.access.hookom.net/Dynamic...rosstabRpt.htm
    Last edited by June7; 08-01-2014 at 03:27 PM.
    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. Report Formatting
    By School Boy Error in forum Reports
    Replies: 3
    Last Post: 12-06-2013, 04:52 AM
  2. Formatting a report
    By keydetpiper in forum Reports
    Replies: 4
    Last Post: 12-20-2012, 12:11 PM
  3. Need some help in formatting my report
    By ammarbohra@gmail.com in forum Reports
    Replies: 3
    Last Post: 04-09-2012, 07:46 PM
  4. formatting a report?
    By mejia.j88 in forum Reports
    Replies: 1
    Last Post: 01-13-2012, 03:20 PM
  5. formatting the report
    By simba in forum Reports
    Replies: 1
    Last Post: 08-12-2011, 12:36 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