ordendelfai
Technical User
Access 97
I have a strange one, not sure if I should post it in the VBA forums, but I'll try here first.
I have an advanced reporting system that uses code on forms to dynamically create the SQL, then a query.
This dynamically created query is filtered and sorted with dynamically created WHERE statements based on the users selections. Basically the data in the query is exactly as it needs to be so that the report doesn't need to do anything except Open.
When the report opens, it was in the same sort order as the query the report is linked to. However, when I added SUM functions to the Report Footer, it stops using the query's sort order, and seems to have some random sort order.
If I deleted the Sum functions, the report sorts again as normal (the same sort as the query).
Any ideas what would cause a Report to NOT sort based on the underlying query when the report has no sort specified in either VBA code or in the Design?
Thanks
Joel
I have a strange one, not sure if I should post it in the VBA forums, but I'll try here first.
I have an advanced reporting system that uses code on forms to dynamically create the SQL, then a query.
This dynamically created query is filtered and sorted with dynamically created WHERE statements based on the users selections. Basically the data in the query is exactly as it needs to be so that the report doesn't need to do anything except Open.
When the report opens, it was in the same sort order as the query the report is linked to. However, when I added SUM functions to the Report Footer, it stops using the query's sort order, and seems to have some random sort order.
If I deleted the Sum functions, the report sorts again as normal (the same sort as the query).
Any ideas what would cause a Report to NOT sort based on the underlying query when the report has no sort specified in either VBA code or in the Design?
Thanks
Joel