Discussion Locked

Changing sort order in MS Access

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have designed a query in MS Access and have set the sort order to Ascending. This sorts the data in that field by (0-9) (A-Z).

I need to change that default to sort first by the alpha then by numeric: (A-Z) (0-9).

I am using Access 97.
Thanks in advance for any assistance you can provide.

M Mayberry

8 replies

by mbarker734

In your query:

Insert a column after the A-Z, then select the 0-9 for that column. Delete the original 0-9.

Hope this helps,

Mark

by mbarker734

If glen is right you can sort the same data in two different columns of the query. Sort one accending the other decending.

Select the desired column for your report or form.

Mark

by glen_mcleod

I don't think that's what he's after, Mark. I think it's 1 column that contains both.

Unfortunatly, the sort order is based on the ASCII value of the characters, and numbers always come before letters in ASCII. Changing code pages won't help, as the first 127 characters are constant, only the extendes characters (128 - 254) differ form code page to code page.

Glen

This discussion is closed to new replies.