S
StargateFan
Lots of trouble with sorting in a particular contacts db I've made.
Despite having a query that sorts exactly how is needed, forms and
reports based on that query are not sorting consistently despite
careful editing.
I noticed that if I happen to sort the forms and the query differently
from the setup, that that "incorrect" sort stays. That really seems
to defeat the purpose of the query setup. Is there a way to ensure
that the default query takes precedence despite the sort a user might
make on it? I only know how to sort on one field with something like
[Contacts Query].LastName
in "order by" where it should sort by LastName and FirstName but when
one sorts in descending, for example, that goes into the "sort by" box
as
[Contacts Query].LastName DESC
which is against the query, which is sorted by LastName, ascending,
then FirstName, ascending.
I can seem to fix the form if I go in and delete all the "sort by"
entries that get dumped into the form. Then if I save it, then it's
okay. But users might sort and then save and then the problem stays.
It might be fine at one point to disable saving in the form, but even
if one sorts differently and exits the form, when one re-opens it, the
sort is only partially corrected. The query's sort by LastName works
but not by FirstName.
Secondly, the report that is set up with grouping isn't working
properly at all, either. In the sorting/group properties, it's
grouped by LastName, ascending, and then sorted by FirstName, also
ascending. Yet the report only is grouped by alphabetical letter
properly, the entries in the report might be properly grouped by
letter, but they're out of order.
I'm really stumped. I've spent any free time over the weekend looking
at all the properties of the forms/report/query and consulted the
archives but I can't seem to find how to fix these problems.
Any guidance really appreciated. Thank you! D
Despite having a query that sorts exactly how is needed, forms and
reports based on that query are not sorting consistently despite
careful editing.
I noticed that if I happen to sort the forms and the query differently
from the setup, that that "incorrect" sort stays. That really seems
to defeat the purpose of the query setup. Is there a way to ensure
that the default query takes precedence despite the sort a user might
make on it? I only know how to sort on one field with something like
[Contacts Query].LastName
in "order by" where it should sort by LastName and FirstName but when
one sorts in descending, for example, that goes into the "sort by" box
as
[Contacts Query].LastName DESC
which is against the query, which is sorted by LastName, ascending,
then FirstName, ascending.
I can seem to fix the form if I go in and delete all the "sort by"
entries that get dumped into the form. Then if I save it, then it's
okay. But users might sort and then save and then the problem stays.
It might be fine at one point to disable saving in the form, but even
if one sorts differently and exits the form, when one re-opens it, the
sort is only partially corrected. The query's sort by LastName works
but not by FirstName.
Secondly, the report that is set up with grouping isn't working
properly at all, either. In the sorting/group properties, it's
grouped by LastName, ascending, and then sorted by FirstName, also
ascending. Yet the report only is grouped by alphabetical letter
properly, the entries in the report might be properly grouped by
letter, but they're out of order.
I'm really stumped. I've spent any free time over the weekend looking
at all the properties of the forms/report/query and consulted the
archives but I can't seem to find how to fix these problems.
Any guidance really appreciated. Thank you! D