Results 1 to 7 of 7
  1. #1
    MattPGA is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    11

    Weird Sorting Issue

    Hi, this should be easy but I'm really confused by it. I'm a pretty experienced Access user and have not seen this before. I have a short-text field storing numbers with digits, spaces, and decimals. I initially imported the data from a spreadsheet. Some of the data looks like this:
    11 00 00
    11 00 01
    11 00 02
    11 00 03
    12 00 00
    12 00 01


    12 00 02
    12 00 03
    12 00 04
    12 00 05
    When I try to add a new record, it is not sorting it correctly like the following list:
    11 00 00
    11 00 01
    11 00 02
    11 00 03
    12 00 06
    12 00 07
    12 00 08
    12 00 00
    12 00 01
    12 00 02
    12 00 03
    12 00 04
    12 00 05

    The new entries I add for the 12 series come after the 11 series but before all the numbers I imported from the spreadsheet.

    Any ideas for me?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    Where is the data you are displaying? Query, form, table...

  3. #3
    MattPGA is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    11
    Quote Originally Posted by orange View Post
    Where is the data you are displaying? Query, form, table...
    It is in a form which is based on a query. I tried sorting just in the table as well and get the same result. There are definitely no trailing or leading white spaces. It just doesn't make any sense.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Want to attach the workbook for analysis? Follow instruction 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
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    If that is a table, the sort may not take affect.
    if a query, is the character letter oh (O) and not zeros?
    are there invisible characters in it ?

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716

  7. #7
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    If the table itself does not sort properly as you said, it suggests to me that what look like blanks in the data are not real spaces, i.e. chr(32).

    Go into you table directly, and delete and re-type some of the spaces after "12". Once you have done that, re-sort the table. Any luck?

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

Similar Threads

  1. Sorting issue
    By Shawnf in forum Queries
    Replies: 1
    Last Post: 05-28-2016, 11:21 PM
  2. Weird Issue with forms
    By newbieaccess203 in forum Queries
    Replies: 3
    Last Post: 01-12-2016, 02:46 PM
  3. Weird Speed issue
    By devlin7 in forum Access
    Replies: 12
    Last Post: 02-09-2014, 07:32 PM
  4. Data Sorting Issue
    By phd42122 in forum Access
    Replies: 5
    Last Post: 04-27-2012, 01:04 PM
  5. Report Sorting Issue
    By cbgroves in forum Reports
    Replies: 14
    Last Post: 12-01-2011, 08:44 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