I have a dynamic report that is generated from a search form. It gives the user the ability to set their criteria on many fields and sort the report according to the field they wish to see it sorted on. At the moment, it populates the grid on the form just fine in the correct sorting order. The form generates an SQL string based on the what the user has selected. When the report is previewed/printed, the report's RecordSource property is set to the SQL string generated by the form, the problem is, even though there is sorting in the SQL string, the records are dropped into the report randomly.
The report will inherit attributes from a table or form, but I can't seem to get it to inherit the sorting from the SQL string.
Any ideas?
The report will inherit attributes from a table or form, but I can't seem to get it to inherit the sorting from the SQL string.
Any ideas?