I have a subform which is for view only (Legacy Job Info for users reference) reading rows from an underlying query. (Subform not linked to main form)The query is based on a single table. Two fields which are not shown on the form but are in the query comprise the composite primary key. The query sorts on one half of the key - the numeric field. A third field is a calculated field which displays to the user the two key fields together.
My problem is that although I want the users to be able to change the sort order using the sort buttons at form level, when the form is closed & re-opened I want the query sort order restored. In addition they need a cmd button on the form to reset the sort(default)order whilst viewing the form because they do not have access to the field to be sorted on (maybe something like clear Orderby value & requery?).
(The same problems seem to arise with a main form and single field primary key - so those bits are probably irrelevant)
Any suggestions?
My problem is that although I want the users to be able to change the sort order using the sort buttons at form level, when the form is closed & re-opened I want the query sort order restored. In addition they need a cmd button on the form to reset the sort(default)order whilst viewing the form because they do not have access to the field to be sorted on (maybe something like clear Orderby value & requery?).
(The same problems seem to arise with a main form and single field primary key - so those bits are probably irrelevant)
Any suggestions?