Results 1 to 5 of 5
  1. #1
    tylerg11 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Group by one field, sort by another


    I'm trying to build a report that groups by Company. Also at this grouping level is the total $ spent by the company. So the report should be a bunch of group headers containing a list of companies and their respective $ spent. However, I don't want to sort by the grouping field (Company). I want to sort by the $. I noticed that the report builder forces the grouping field to set the sort. Any way to override this??

    Click image for larger version. 

Name:	3-4-2013 2-29-46 PM.jpg 
Views:	11 
Size:	13.6 KB 
ID:	11407

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    What happens if you create a $ Sort By condition in the report and position it above the company Group On condition?
    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
    tylerg11 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    200
    Then it group companies within the sort. So it would sort by the $, and only group under a company header if there will multiple values of the same $ value. The sort takes priority over the group, not at the same level.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I need to see data and report design. If you want to provide db 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
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    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: 2
    Last Post: 10-18-2012, 06:56 PM
  2. Sort order by Dlookup field
    By 1Giggles in forum Forms
    Replies: 1
    Last Post: 02-22-2012, 02:13 PM
  3. Button to Sort by Field
    By tylerg11 in forum Programming
    Replies: 4
    Last Post: 10-20-2011, 02:43 PM
  4. Group Header and then a Sort
    By bbulla in forum Reports
    Replies: 1
    Last Post: 09-29-2011, 09:56 AM
  5. Sort according to field length?
    By wawinc in forum Queries
    Replies: 4
    Last Post: 12-15-2010, 04:27 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