Share via

Access will not allow the sorting of columns in alphabetical order why?

Anonymous
2016-10-18T14:01:48+00:00

I have used Access databases for many years and consider myself an experienced user.

I recently created a simple Address list with about 50 names addresses and other details.

I have created a Table, but when I try to sort the surnames column into alphabetical order, it shows the sort A-Z option, but it is not available, why?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2016-10-21T08:23:44+00:00

    Thanks for the interesting replies which have added to my understanding of Access, although none solved the problem.

    I eventually discovered why these columns would not sort as follows:

    1. When I originally designed the database I attributed Long Text to all columns, so as not to be restrictive to data entry.
    2. I have found out by trial and error that Access will not allow alphabetical A - Z sorting of columns attributed to Long Text.
    3. I changed the appropriate columns and attributed Short Text.
    4. I can now sort the data into alphabetical order.

    Regards

    John Sanderson

    Was this answer helpful?

    100+ people found this answer helpful.
    0 comments No comments
  2. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2016-10-23T15:01:56+00:00

    There are a number of limitations with long text and memo fields. You have found one. You should really rethink your strategy of "Long Text to all columns". Surely 255 characters should be sufficient for most of your fields.

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2016-10-19T04:17:37+00:00

    You can usually just right click on the column and choose a-z.

    Are you talking about a datasheet form, or when you open the table directly?

    If we are talking about a continues form, or a datasheet form (which looks like the table view), then if the column in question is disabled (displayed, not enabled), then the sort options ARE DISABLED.

    HOWEVER your right click will work but in fact you are referring to the column to the left or right (VERY VERY hard to see and notice this from the GUI - it LOOKS like you selecting the right column when in fact you can't).

    So this case can OFTEN be confusing since you simply right click on the column and are selecting A-Z or Z-A to sort - and it does not work correctly! However, if you look CLOSE your cursor is NOT in the column you right clicked on since it is disabled. Thus your sort applies to the column to the left, or the right. So from a visual you are right clicking on the column, and choosing sort – but it don’t work and this is hard to see.

    So try the sort on a table (just open the table directly to test this). If the sort works just fine on the table, then likely this is a datasheet form with the column disabled. 

    If above is not your case (a form of some type), then something else here is at play and we likely need more info to determine what is going on. My best "guess" is this some form with the column in question disabled - and thus you can't select the column for sorting.

    Regards,

    Albert D. Kallal (Access MVP)

    Edmonton, Alberta Canada

    <Email address is removed for privacy>

    ***Personal information deleted by the moderator. Please see the Microsoft Community Frequently Asked Questions for more information on how you can protect your privacy.***

    Was this answer helpful?

    6 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2016-10-18T17:22:13+00:00

    I have no idea why you are unable to sort the datasheet on the column, but you should never interface with data in a table's raw datasheet view other than possibly when debugging.  Data should only be exposed in a form or report.  In the case of the  former the form's RecordSource would be a query as Karl suggests, e.g.

    SELECT *

    FROM [AddressList]

    ORDER BY [LastName];

    In the case of the latter the report's internal sorting and grouping mechanism should be used to order the data.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2016-10-18T16:52:20+00:00

    Use a query to sort.

    Was this answer helpful?

    0 comments No comments