tsmits1975
Technical User
Hi there.
I have an MS Access database which I converted from Access 97 to Access 2000. I now have problems with a report which has a query as recordsource. In the On Open event of the report (under Access '97) I set the orderby property with a string using the syntax "(queryname.queryfield) DESC" an the orderbyon property on true. However, I had to change this code to "(queryname![queryfield]) DESC" to get it running under Access 2000. This did not generate any error message so I assumed it worked, but when I took a closer look I saw that the sorting on the field queryfield did not take place anymore. The report now always sorts on this field ascending, no matter what I try. Does anyone know what is going on here? Any help will be greatly appreciated.
Thanks.
I have an MS Access database which I converted from Access 97 to Access 2000. I now have problems with a report which has a query as recordsource. In the On Open event of the report (under Access '97) I set the orderby property with a string using the syntax "(queryname.queryfield) DESC" an the orderbyon property on true. However, I had to change this code to "(queryname![queryfield]) DESC" to get it running under Access 2000. This did not generate any error message so I assumed it worked, but when I took a closer look I saw that the sorting on the field queryfield did not take place anymore. The report now always sorts on this field ascending, no matter what I try. Does anyone know what is going on here? Any help will be greatly appreciated.
Thanks.