Hi
I need to allow users to filter records using the "Query by Form" function and then to programatically save the filter that the user creates as a Query. This is to allow another form to use the saved Query to select the records for another function.
I know this is easily achieved using the "Save as Query" function in "Advanced Filter", but I don't want users to have to use the MS toolbars and menu options. I want to be able to create the saved Query automatically as soon as the form filter is run.
Can anyone please assist with the code required to achieve this?
I know that it is possible to do this because MS tells me so, but I cannot find any refernce code anywhere relating to saving a filter as a query.
(Sorry for the length of this thread):-(
I need to allow users to filter records using the "Query by Form" function and then to programatically save the filter that the user creates as a Query. This is to allow another form to use the saved Query to select the records for another function.
I know this is easily achieved using the "Save as Query" function in "Advanced Filter", but I don't want users to have to use the MS toolbars and menu options. I want to be able to create the saved Query automatically as soon as the form filter is run.
Can anyone please assist with the code required to achieve this?
I know that it is possible to do this because MS tells me so, but I cannot find any refernce code anywhere relating to saving a filter as a query.
(Sorry for the length of this thread):-(