Results 1 to 2 of 2
  1. #1
    rdenn_58 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    6

    Record Sorting

    I have been spending a bit of time on this problem with no solution so far. I want to sort records numerically in ascending order, but it puts larger numbers before smaller numbers.

    Currently the records sort as:

    1447327
    1729215


    535728
    686713

    If I sort in descending order, it shows:

    686713
    535728
    1729215
    1447327

    I would like to have it sort to show:

    535728
    686713
    1447327
    1729215

    I don't want to have to put a 0 in front of the 535728 or 686713 to make it work that way. This table field is a text field as a small number of records will be alpha/numeric.

    Thanks for the help!!

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    In order to get them to sort the way you want, they would need to be Numeric, not Text. But if you have alphanumeric entries, that probably isn't possible. You want two different things that are conflicting with each other (you want Text, but to sort like a Number).

    Your best bet may be to create a calculated field off of this field that you use only for sorting purposes (adding in a leading zero).

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

Similar Threads

  1. Sorting
    By BLD21 in forum Access
    Replies: 4
    Last Post: 05-09-2013, 01:23 PM
  2. Replies: 2
    Last Post: 04-18-2012, 03:19 PM
  3. Replies: 11
    Last Post: 01-12-2012, 07:55 PM
  4. IP Sorting
    By neo651 in forum Access
    Replies: 4
    Last Post: 05-24-2011, 01:08 PM
  5. Need Sorting Help
    By rbpd5015 in forum Access
    Replies: 1
    Last Post: 09-28-2009, 07:39 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