A
aemAndy
I have a table of transaction data.
I'm creating the report using the following steps -
Query1 - from the transaction table
Pulls "Group"(Group), "ID"(Group), "Trans#"(count), "Pd Amount"(Sum), "Req
Amount"(Sum) and calculates "Savings"(Sum) WHERE PdDate Is Not Null
Query 2 - from Query 1
Groups by "Group", "ID"(Count), "Trans#(count)"(Sum), "Pd Amount"(Sum), "Req
Amount"(Sum), "Savings"(sum)
Query 3 - from Query 2
Takes all the fields from Query 2, and calculates AvgTransSav, AvgIDSav,
AvgTransPerID.
Now I have a report that uses Query 3 for it's data.
I have a form that launches the report.
Can I specify beginning and end paid dates (limiting criteria in Query 1,
but not displayed) as part of the WHERE statement on the "DoCmd.OpenReport"
command?
I already know it won't automatically go back through the food chain of
queries and apply it to the first (or if it does, I've screwed something else
wrong).
Is there a way to specify, in the WHERE statement, that I want that
criterial applied to Query 1?
I'm creating the report using the following steps -
Query1 - from the transaction table
Pulls "Group"(Group), "ID"(Group), "Trans#"(count), "Pd Amount"(Sum), "Req
Amount"(Sum) and calculates "Savings"(Sum) WHERE PdDate Is Not Null
Query 2 - from Query 1
Groups by "Group", "ID"(Count), "Trans#(count)"(Sum), "Pd Amount"(Sum), "Req
Amount"(Sum), "Savings"(sum)
Query 3 - from Query 2
Takes all the fields from Query 2, and calculates AvgTransSav, AvgIDSav,
AvgTransPerID.
Now I have a report that uses Query 3 for it's data.
I have a form that launches the report.
Can I specify beginning and end paid dates (limiting criteria in Query 1,
but not displayed) as part of the WHERE statement on the "DoCmd.OpenReport"
command?
I already know it won't automatically go back through the food chain of
queries and apply it to the first (or if it does, I've screwed something else
wrong).
Is there a way to specify, in the WHERE statement, that I want that
criterial applied to Query 1?