Hi
I prefer to hide menus and toolbars so I give my users a custom button on forms to open the AdvancedFilterSort window. The AdvancedFilterSort opens with a (default?) of "My_FormName_Filter1".
I also launch a small form "Apply_Filter_Form" which has Apply and Cancel buttons. The Apply button calls:-
Works perfectly but what I'd like to do is give them the option of saving this as a Query when they click the Apply button.
When I tried to test this in the Apply button:-
it failed with :-
I guess that "My_FormName_FormFilter1" is not really a Query as such?
Anyone know how to do this please?
I prefer to hide menus and toolbars so I give my users a custom button on forms to open the AdvancedFilterSort window. The AdvancedFilterSort opens with a (default?) of "My_FormName_Filter1".
I also launch a small form "Apply_Filter_Form" which has Apply and Cancel buttons. The Apply button calls:-
Code:
DoCmd.Close acForm, "Apply_Filter_Form"
RunCommand acCmdApplyFilterSort
DoCmd.Close acQuery, "My_FormName_FormFilter1"
When I tried to test this in the Apply button:-
Code:
DoCmd.CopyObject , "My_Test_Filter", acQuery, "My_FormName_FormFilter1"
Can't find the object "My_FormName_FormFilter1"
I guess that "My_FormName_FormFilter1" is not really a Query as such?
Anyone know how to do this please?