vbnetcoder
asked on
order by in my report
I am using a query for a recordset for a report and it orders correctly. However, when i run the report it does not. Why?
What it does seem to order on is the field unique id
What it does seem to order on is the field unique id
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just to add a bit, the reason for that is that in order for the report engine to offer things like groups and performing calculations over a group or the report, it needs to be aware of the ordering in the data, which if done in the query, it would not know.
So anything specified in terms of ordering in the record source is ignored. The report applies it's own ordering as specified in the report.
So you should be using a query that does not order any of the fields. If you are, then your doing extra work.
Jim.
So anything specified in terms of ordering in the record source is ignored. The report applies it's own ordering as specified in the report.
So you should be using a query that does not order any of the fields. If you are, then your doing extra work.
Jim.
ASKER