J
JonWayne
I have a crosstab query that is dependent on a relatively long list of
queries, one of which has a form-control reference as a criteria value.
Before, there was no criteria required, and all the queries ran fine
(individually, and stacked beneath the final crosstab). Then I modified one
of the intermediate queries (some 4 levels below the final crosstab) so that
it reads a numeric value from an open form into the criteria row of one of
its fields. That is where the problem began. All but the crostab query run
flawlessly, however, the crosstab burps up the error message: The Microsoft
Jet database engine does not recognize 'Forms!frmSelectPeriod!cboYear' as a
valid field name or expression. I ensure that the form is open, and the name
is correct as well as the control name - in fact, the query 1 level below
the crosstab opens fine once the form is open. I had this problem before in
another application and I circumvented it by making the query just before
the crosstab, a MakeTable query, then, base the crosstab on that table.
While that worked, I'm guessing that is not the most efficient way of
getting it to work.
Does anyone here have a better solution? Id appreciate any. Thanks
queries, one of which has a form-control reference as a criteria value.
Before, there was no criteria required, and all the queries ran fine
(individually, and stacked beneath the final crosstab). Then I modified one
of the intermediate queries (some 4 levels below the final crosstab) so that
it reads a numeric value from an open form into the criteria row of one of
its fields. That is where the problem began. All but the crostab query run
flawlessly, however, the crosstab burps up the error message: The Microsoft
Jet database engine does not recognize 'Forms!frmSelectPeriod!cboYear' as a
valid field name or expression. I ensure that the form is open, and the name
is correct as well as the control name - in fact, the query 1 level below
the crosstab opens fine once the form is open. I had this problem before in
another application and I circumvented it by making the query just before
the crosstab, a MakeTable query, then, base the crosstab on that table.
While that worked, I'm guessing that is not the most efficient way of
getting it to work.
Does anyone here have a better solution? Id appreciate any. Thanks