Try:
Me.[Sub1].Form.FilterOn = False
replacing Sub1 with the name of your subform control.
That should work unless you have the main form filtered as well. If you do
Access gets confused. Details:
Incorrect filtering of forms and reports
at:
http://allenbrowne.com/bug-02.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
a said:
I have 2 form (form and subform) How can I remove filter sort from (sub
form) by using command button in main form