I often provide a list form with the capacity to filter and sort, then a Print button that passes the current filter and sort order to a Report for printing the list.
I attach a demo.
The column headings act as Sort buttons, and you can filter by School. Once a filter is applied, a Clear Filter button becomes visible that will remove the filter with:
Me.Filteron=False Me.filter=""
The Problem
If I apply a Filter, then Clear it, then Sort, the filter that I have just removed reappears again when I go to the Report.
Why?
It seems that Access ignores the Me.Filter=”” line.
I have a workaround for this, but I feel that I should not need it.
(In the Print button code, I can test for me.filteron =true.)