Results 1 to 8 of 8
  1. #1
    mountaindo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    5

    Report Grouping

    Hi,



    I would like to do the simplified example report below and can't quite get the grouping right to do what I want.

    My table looks like:
    Employee X .5 January
    Employee X .6 February
    Employee X .7 March
    Employee Y .5 January
    Employee Y 1.0 March

    I want my report to display:

    January February March
    Employee X .5 .6 .7
    Employee Y .5 1.0


    My current report is grouped in the Detail section, and uses iif to display:

    January February March
    Employee X .5
    Employee X .6
    Employee X .7
    Employee Y .5
    Employee Y 1.0

    Or I tried to group on employee name but it will only show one of the records, i.e.:

    January February March
    Employee X .5
    Employee Y .5


    So my question is how do I using the grouping to only list each employee once, while also displaying the multiple records?

    Thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Are you using the report Grouping & Sorting tool that opens at bottom of the report in design view?

    Employee name/ID in group header section. Other data in Detail section.
    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
    mountaindo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    5
    Thanks for the quick response!

    Yes, that's the grouping I was using.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    And data in Detail section?

    If you still have issue, can you provide db for analysis? Follow instructions at bottom of my post.
    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
    mountaindo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    5
    Doing it that way still has seperate lines like in the "current report" version in my original post.

    I'm looking to display all three months on one line.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I should have read your OP more carefully.

    You don't want to use standard CROSSTAB?

    With query using IIf expressions, make it an aggregate query grouping on the Employee and use the Max function under each month calculated field. Use that as the report RecordSource.
    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.

  7. #7
    mountaindo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    5
    I've never used a CROSSTAB before but I'll do some research and try it out.

    Thanks for your help and time!

  8. #8
    mountaindo is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    5
    CROSSTAB was just what I was looking for. Thanks again!

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

Similar Threads

  1. Grouping in Report
    By New.Dimension6267 in forum Reports
    Replies: 1
    Last Post: 10-11-2013, 10:03 PM
  2. Grouping in a report
    By TrackStar in forum Reports
    Replies: 4
    Last Post: 11-02-2012, 01:44 PM
  3. Grouping in a report
    By YStein142 in forum Reports
    Replies: 3
    Last Post: 06-28-2012, 05:22 PM
  4. Grouping on Report
    By Amber in forum Reports
    Replies: 3
    Last Post: 02-01-2012, 05:48 PM
  5. Report grouping
    By tarhim47 in forum Reports
    Replies: 1
    Last Post: 06-08-2011, 04:31 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