Results 1 to 4 of 4
  1. #1
    MaggieN is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    7

    Angry Manually sort text in report grouping (other than A to Z, or Z to A)?????

    Hello,



    I have a simple 4 column report with detail grouped by Age. The age field (very left column) has a text property (e.g., "0-90 days", and thus is sorting only from A to Z or Z to A). Is there any way to MANUALLY ARRANGE the way groups are listed in my report? I need the report to look like this with this sort order:

    Age:
    "0-90 days" (first group)
    "90-180 days"
    "180 - 365 days"
    ....
    "1-2 years"
    "2-3 years"
    ....
    "20+ years" (last group)

    Instead I am getting this order (bcs the text sort recognizes only first number, then second number, etc..):
    0-90 days
    10-15 years
    20+years
    ....

    I created this report using the Report Wizard, with Grouping by Age. (Thus only grouping options are either "Normal", or 1st letter, 2nd letter, 3rd letter, etc.. = not helpful). Please HELP! Thank you!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    theres no manual, but when you build your Group name, use a table, the table will have sort order.
    tGroups
    -------------
    [Grp], [GrpSort]
    "0-90 days" , 1
    "90-180 days",2
    "180 - 365 days",3

    then when you join it in your query , you can use the sort order ,(not the text)

  3. #3
    MaggieN is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    7
    Thank you, I actually already solved it - I created a separate column in my table called Age Rank. Assigned 1 to first group (e.g., "0-90 days" = 1, "90-180 days" = 2, etc.). Then when using the report wizard, I grouped based on "Age Rank" and then on "Age", and then I just made the Age Rank not visible in the actual report... It kept the rank order for Age that way.

    Thanks anyway.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    That's what the table does.

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

Similar Threads

  1. Replies: 1
    Last Post: 12-22-2014, 11:08 AM
  2. Cascading combo box - sort text numerically
    By motormouth1991 in forum Access
    Replies: 4
    Last Post: 05-23-2013, 06:49 AM
  3. Sort a Text Field Chronological
    By Juan4412 in forum Queries
    Replies: 2
    Last Post: 09-07-2012, 12:20 PM
  4. report grouping and sort
    By Meccer in forum Access
    Replies: 1
    Last Post: 01-05-2011, 08:30 AM
  5. Query Using Grouping is Cutting off Text
    By tigers in forum Queries
    Replies: 3
    Last Post: 06-22-2009, 11:11 AM

Tags for this Thread

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