Strange situation. I have a form where the "USER" selects from a combobox the appropriate sort for a report to be previewed. The VBA code then updates the query with a new ORDER BY . . . line. I have verified that the query has changed to the new sort order. The Record Source for the report is in fact the correct query. I am not using the sorting and grouping feature in the report. When the preview runs the correct records are being selected but the NEW sort order is not reflected. While in preview I can click the design button and then look at the Record Source for the report. The query is correct and the SQL within the query has been modified by the code earlier noted. The query when run seperately does in fact sort propertly.
Very confusing. I am running Windows XP and A97 for this application. I have run this type of form, VBA code, query, and report combination many times before without a problem.
Any ideas experts??? Strange!!!
Bob Scriver
Want the best answers? See FAQ181-2886
Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???
Very confusing. I am running Windows XP and A97 for this application. I have run this type of form, VBA code, query, and report combination many times before without a problem.
Any ideas experts??? Strange!!!
Bob Scriver
Want the best answers? See FAQ181-2886
Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???