I am using a form to create a series of dynamic queries.
I am using the createQueryDefs method, and then once i am done with the query im using DoCmd.DeleteObject acQuery, to remove the query.
The problem i have is that some of the queries are selects and i cannot delete them cause it opens the query window.
I need a piece of code that says after the query is shut down delete the query, or something that would have a similar effect. I am as always open to suggestions of other ways to do this.
I am using the createQueryDefs method, and then once i am done with the query im using DoCmd.DeleteObject acQuery, to remove the query.
The problem i have is that some of the queries are selects and i cannot delete them cause it opens the query window.
I need a piece of code that says after the query is shut down delete the query, or something that would have a similar effect. I am as always open to suggestions of other ways to do this.