Results 1 to 3 of 3
  1. #1
    Flyboy65 is offline Novice
    Windows 11 Office 365
    Join Date
    Apr 2025
    Posts
    2

    Sorting on a Report


    I am trying to replicate a Profit/Loss report. I have Revenue, Expense, and COGs under my types header. The only option for the sort order is either ascending and descending. I'm wondering if there is another way to sort so I can show Revenue, COGs, then Expense.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Calculate a numeric or letter value for each category and sort on that. Calculate in query or in report design.

    Switch(fieldname = "Revenue",1, fieldname="COGs",2, fieldname="Expense",3, True,4)

    Or have a Types table where this value is a field and include that table in report RecordSource.

    ID Cat
    1 Revenue
    2 COGs
    3 Expense
    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
    Flyboy65 is offline Novice
    Windows 11 Office 365
    Join Date
    Apr 2025
    Posts
    2
    June7, Thanks very much for your help....works perfectly now.

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

Similar Threads

  1. Replies: 11
    Last Post: 01-12-2012, 07:55 PM
  2. report formating/sorting problem
    By bill4364 in forum Reports
    Replies: 1
    Last Post: 02-19-2010, 08:15 PM
  3. sorting a field in report
    By Philangr8 in forum Reports
    Replies: 3
    Last Post: 08-26-2009, 05:38 PM
  4. Access report with 3 tables -grouping,sorting
    By kartechy in forum Reports
    Replies: 0
    Last Post: 07-22-2009, 09:07 AM
  5. Sorting data in a report
    By rjsiler in forum Reports
    Replies: 1
    Last Post: 08-04-2008, 01:40 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