Results 1 to 6 of 6
  1. #1
    Cartaphilus is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    3

    Can't Sort a Table in Access 2013


    I have a table in a database (Access 2013) that I want to sort by a particular column. But when I select the column, the Sort commands 'Ascending' and 'Descending' grey out. Strangely, at least to me, this only happens on some columns, while others in the same table will sort properly. The problem isn't restricted to a particular data type. Some numeric columns sort, others don't. Some alpha columns sort, others don't, etc. I've googled the problem but can't seem to find an answer. Can someone help me figure out how to make all columns sortable? TIA...

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Create a query based on the table. You should be able to sort the query by any column
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Cartaphilus is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    3
    Quote Originally Posted by Bob Fitz View Post
    Create a query based on the table. You should be able to sort the query by any column
    Thanks for the quick reply. So I can't just start Access, open the table, select a column, and sort on it? I'm going to have to do this programmatically? Also, any idea of why I can sort some columns and not others?

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,840
    have you tried compacting and repairing? - db may have become corrupted in some way. Also, field names which are reserved words can cause unexpected issues. (Date, Time, Name, Desc and Description are commonly used in error).

    You've mention the datatypes and alpha or numeric, but are you using lookups, multivalue or calculated fields? These are not always sortable or don't sort as expected.

    Have you also tried using the criteria on the dropdown? or are these disabled as well?

  5. #5
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Are any of the fields memo type? You can't sort on those, either.

  6. #6
    Cartaphilus is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    3
    Quote Originally Posted by John_G View Post
    Are any of the fields memo type? You can't sort on those, either.
    Bingo! Yes, the fields that won't sort are memos, renamed in Access 2013 as 'long text'. I hadn't seen John_G's reply, I was just logging on to update my question and let everyone know I had discovered this myself by further examination. So not that it matters, since that little factoid isn't going to change, but why the <expletive deleted> can't you sort long text fields?

    Anyhow, my thanks to all of you that replied and tried to help. That's community.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-23-2016, 05:00 PM
  2. Replies: 1
    Last Post: 09-01-2015, 02:01 PM
  3. Replies: 2
    Last Post: 08-13-2015, 02:14 PM
  4. Access 2013 table accesses
    By jassie in forum Programming
    Replies: 2
    Last Post: 05-19-2015, 04:27 PM
  5. Replies: 7
    Last Post: 03-27-2014, 11:47 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