problems to sort recordes in a report!!!!

G

geo

i have a report which pulls out data from a query with
serveral tables behind. this query is ordered by Column
A, then B and then C. No problems with the sort of this
query. But when displayed on the report, it wouldn't be
sorted by the specified order (although i have OrderByOn
and OrderBy defined)..

any suggestions??????????????/

Thanks.
 
M

Marshall Barton

i have a report which pulls out data from a query with
serveral tables behind. this query is ordered by Column
A, then B and then C. No problems with the sort of this
query. But when displayed on the report, it wouldn't be
sorted by the specified order (although i have OrderByOn
and OrderBy defined).


Using Order By in a report's record source query is a waste
of resources for all but the most trivial reports. The
report's OrderBy property is only sligtly more useful. The
key to your question it that the report's Sorting and
Grouping take precedence over both those other aorting
mechanisms.

To get your report sorted the way you want, try either
adding three (more?) levels to Sorting and Grouping, one
each for numeric fields A, B, and C. Or add one level with
an expression like: =A & "~" & B & "~" & C if the fields
are related text fields such as last, first and middle
names.
 
G

Guest

While in design view of your report, from the tool bar select "sorting and grouping button
input the sort order there. I would also set orderby to NO and NOT define orderby
I have always used the sorting and grouping, and so far it has not failed me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top