I have a stored query.
I want to run this query via a button from a form and pass
a boolean such as "6 OR 8 OR 10" that is in a txtField on the form.
So, I put in the respective field - in the design grid of the query
this: [Forms]![Form]![txtField]
and in the button: DoCmd.OpenQuery Query, acNormal, acEdit
I know I'm doing it wrong...
What is the easiest way to accomplish this?
I've found a few threads - just can't put it all together... Thanks!
I want to run this query via a button from a form and pass
a boolean such as "6 OR 8 OR 10" that is in a txtField on the form.
So, I put in the respective field - in the design grid of the query
this: [Forms]![Form]![txtField]
and in the button: DoCmd.OpenQuery Query, acNormal, acEdit
I know I'm doing it wrong...
What is the easiest way to accomplish this?
I've found a few threads - just can't put it all together... Thanks!