marcello62
Technical User
Hi there,
I have an MSAccess 2000 database with a report which I want to sort in code. I converted this database from MS Access 97 to MS Access 2000. The report has the query queryname as it's recordsource. When it ran under MS Access 97, I sorted the report in code by setting the orderByOn property to true and the orderBy property to the string "queryname.queryfieldname". To get this code running without runtime errors under 2000 I had to change it to " queryname![queryfieldname] ". I did get no run-time errors after doing so, but the sorting did not take place anymore.
When clicking the left square button in report design mode, you get a context menu containing the option Sorting and Grouping. By selecting the appropriate field after activating this menu I get the report sorted again, but now I want to do this programmatically. Does anyone know how to do this?
Any help will be greatly appreciated.
Thanks.
I have an MSAccess 2000 database with a report which I want to sort in code. I converted this database from MS Access 97 to MS Access 2000. The report has the query queryname as it's recordsource. When it ran under MS Access 97, I sorted the report in code by setting the orderByOn property to true and the orderBy property to the string "queryname.queryfieldname". To get this code running without runtime errors under 2000 I had to change it to " queryname![queryfieldname] ". I did get no run-time errors after doing so, but the sorting did not take place anymore.
When clicking the left square button in report design mode, you get a context menu containing the option Sorting and Grouping. By selecting the appropriate field after activating this menu I get the report sorted again, but now I want to do this programmatically. Does anyone know how to do this?
Any help will be greatly appreciated.
Thanks.