J
jodamo5 via AccessMonster.com
I have an unbound form that I use to choose parameters for queries. There
are four different paramaters that I can enter into the form, and when I
click a command to open the query, the query is based on what values were
selected in the form. This is working well.
But my challenge comes when I want to save the query - with those fixed
parameters.
At the moment when I click "save as" on the query, the query's parameters are
still being pulled from the values in my form. So the query results change
whenever I change the values on the form.
But what I need to happen is to save that query with those fixed parameters
in then.
Ideally I want to run this from a command button - "save query" on the form,
so it will look at what values I have selected and automatically put those
fixed values in the parameters and then pop up with a "save as" box for me to
type the name of the new query.
If the solution requires VBA that's fine, but please give me step by step as
I'm very much a copy-paste programmer!
Any help would be appreciated. Thanks!
are four different paramaters that I can enter into the form, and when I
click a command to open the query, the query is based on what values were
selected in the form. This is working well.
But my challenge comes when I want to save the query - with those fixed
parameters.
At the moment when I click "save as" on the query, the query's parameters are
still being pulled from the values in my form. So the query results change
whenever I change the values on the form.
But what I need to happen is to save that query with those fixed parameters
in then.
Ideally I want to run this from a command button - "save query" on the form,
so it will look at what values I have selected and automatically put those
fixed values in the parameters and then pop up with a "save as" box for me to
type the name of the new query.
If the solution requires VBA that's fine, but please give me step by step as
I'm very much a copy-paste programmer!
Any help would be appreciated. Thanks!