Brendan Reynolds \(MVP\) said:
Most of the limitations of Access can be found in the help file (search for
'specifications'). There are no limitations listed there on the number of
fields in an ORDER BY clause, and if there is a limitation, I'd be surprised
if it were not higher than 15.
The most common cause of queries not being sorted in the way you may expect
is the difference in the way that text and numeric (and date) fields are
sorted. If you could post the SQL for the query, and list the data type of
each field used in the ORDER BY clause, and an example of how the records
are sorted and how you expected them to be sorted, it might be easier to see
what the problem is.
Hello Brendan,
The sql statement that I used was:
-----------------
SELECT GroupByInputs_9W9.field1, GroupByInputs_9W9.field2,
GroupByInputs_9W9.field3, GroupByInputs_9W9.field4,
GroupByInputs_9W9.field5, GroupByInputs_9W9.SPDiff,
GroupByInputs_9W9.Slope2, GroupByInputs_9W9.Slope3,
GroupByInputs_9W9.Slope4, GroupByInputs_9W9.Slope5
FROM GroupByInputs_9W9
ORDER BY GroupByInputs_9W9.field1, GroupByInputs_9W9.field2,
GroupByInputs_9W9.field3, GroupByInputs_9W9.field4,
GroupByInputs_9W9.field5, GroupByInputs_9W9.SPDiff,
GroupByInputs_9W9.Slope2, GroupByInputs_9W9.Slope3,
GroupByInputs_9W9.Slope4, GroupByInputs_9W9.Slope5;
------------------
all fields were text. Samples of content were "BIN0001" and BIN002".
I showed the mis-sorting to another co-worker, and he can't figure it
out either. The field that was out of order was 'Slope5'. If you
like, I can send you the database and you can take a look at it.
Thanks.
Marvin