A
AJ
Hi!
I have several queries that uses a certain textbox on a form as a parameter
reference. I would like to be able to run these queries mulitple times, but
each time reference a different cell on the form. And without having to type
in the parameters each time. Here is the criteria of my query:
WHERE (((DatePart("q",[Date]))=[Forms]![Quarterly THM
Results]![QuarterStart]) AND ((Year([Date]))=[Forms]![Quarterly THM
Results]![Year1])
I am wondering if there is a way to change this to:
WHERE (((DatePart("q", [Date]))=[Forms]![Quarterly THM Results]![Quarter2]
AND ((Year([Date]))=[Forms]![Quarterly THM Results]![Year2]
Can I do this in a query, or do I have to run some sort of macro to change it?
In the end, I would like to click on 1 button, and have the query run 4
times, and take each of those 4 results and put them onto a report. Any
ideas?
I have several queries that uses a certain textbox on a form as a parameter
reference. I would like to be able to run these queries mulitple times, but
each time reference a different cell on the form. And without having to type
in the parameters each time. Here is the criteria of my query:
WHERE (((DatePart("q",[Date]))=[Forms]![Quarterly THM
Results]![QuarterStart]) AND ((Year([Date]))=[Forms]![Quarterly THM
Results]![Year1])
I am wondering if there is a way to change this to:
WHERE (((DatePart("q", [Date]))=[Forms]![Quarterly THM Results]![Quarter2]
AND ((Year([Date]))=[Forms]![Quarterly THM Results]![Year2]
Can I do this in a query, or do I have to run some sort of macro to change it?
In the end, I would like to click on 1 button, and have the query run 4
times, and take each of those 4 results and put them onto a report. Any
ideas?