When i view the data sheet of a report's data source, the records sort as i need them to (it has a not 'normal ... ascending / descending order; and there is a function, used in the query, that has been written to address this. it has been used extensively throughout the project.)
However, in the actual report the records in it's detail section, occur in a consistent sequence, but not anything like the order ought to be. The order of records in the detail does not match the order in the datasheet of the data source.
In an attempt to find the cause, I have commented EVERY line of code behind the report. It has had no effect; still wrong.
I have tried different back-end data files. One of the 3 yields consistently correctly sorted data in the printed report; the other 2 consistently do not
(The back-ends 'should have the same table structure. To validate this, i copied the table from the working back-end into one of the other files; then moved it's data into it, and so forth. I 'thought' it solved the problem - there must be some difference in the table's structure (?) (there have been some very recent updates that may not have made it to all of the back-ends.) But it's not working correctly now (maybe I am wrong about it having worked previously; and i will try again.)
the bottom line is: I'm stumped:
why would a data source, at the query sort correctly, but in the report sort differently?
as always, with appreciation in advance,
m.