Results 1 to 4 of 4
  1. #1
    JuanGmo is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2020
    Posts
    4

    Strange or wrong alphabetical order in queries tables

    I have several table with scientific names of butterflies, when I order from A to Z, in the table or in the queries, only with the letter C, i got names that start with Ch after Cz, alway Ch at the end.

    Example:


    Conga
    Cravera
    Cyclosma
    Chalcone

    Thanks for any help. Juan

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    I suspect the h is not an h, but another character that looks like an h. Depends on your font

    write a short routine to check the chr numbers - something like

    Code:
    sub checkchar(s as string)
    dim i as integer
    
        for i=1 to len(s)
            debug.print mid(s,i,1) & ":>>" & chrw(mid(s,i,1))
        next i
    
    end sub

  3. #3
    JuanGmo is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2020
    Posts
    4
    Hi Ajax, thanks for the answer, there is not a single name with Ch that doesnt work, there are a lot of Ch that goes aftre Cy, with your suggestion I exported the whole table to Excel and Word and there it works perfectly. Thanks Juan

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    without real data hard to prove one way or the other. I can't replicate the problem.

    Only other thought is perhaps your db has some corruption. Suggest compact/repair or better, create a new db and import all objects

    Another suggestion is to reimport the data from excel and see if it now sorts correctly in Access

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

Similar Threads

  1. alphabetical order from different fields.
    By xtrmsound in forum Access
    Replies: 2
    Last Post: 05-29-2014, 02:10 PM
  2. alphabetical order of lists
    By FB93 in forum Access
    Replies: 1
    Last Post: 03-27-2014, 06:23 PM
  3. Why is my form opening in alphabetical order?
    By Access_Novice in forum Forms
    Replies: 6
    Last Post: 12-10-2013, 05:22 PM
  4. Records are not in alphabetical order
    By snowboarder234 in forum Forms
    Replies: 3
    Last Post: 04-12-2012, 03:30 PM
  5. Combo Box in Alphabetical order
    By jordanturner in forum Forms
    Replies: 2
    Last Post: 09-24-2010, 08:02 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