D
DOYLE60
I am trying to do a crosstab query based on another query which has a filter on
it. The filter was the following:
Between [Forms]![DialogPrintfrm]![DateLow]+1 And
[Forms]![DialogPrintfrm]![DateHigh]
When trying to run the crosstab, the database gave me an error: "The Microsoft
Jet Database engine does not recongize "[Forms]![DialogPrintfrm]![DateLow]" as
a valid field name or expression."
So I put in the expression in the parameters along with the DateHigh. And I
ran the crosstab. It worked. I then went back to the query the crosstab is
based on and added more filters. Ones like this:
Like
(IIf(IsNull([Forms]![DialogPrintfrm]![MatchChosen]),"*","|[Forms]![DialogP
rintfrm]![MatchChosen]|"))
And it worked without giving me parameter problems. Surprising but true! I
put in four other filters like the one above and checked them all out. They
worked.
But I went back to the database a few days later and for some reason the
crosstab didn't work. It gave me the old message again about not recognizing
the filters. The subsequent ones. So after I put the troublesome filter in
the parameters, it would give me the next one it had issues with, then the
next, and the next.... I put them all in one at a time, and when I ran it, it
gave me nothing.
So why does it work one day and not the next? How does one work with filters
in Crosstabs. I just don't get it. In fooling around with them, trying to
solve this issue, all sorts of wierd things are happening.
The only way I see around it is to build a Make Table query between the two
queries; have the query with filters, make a table, and then the crosstab based
on the table. That would negate the filters.
Any help and suggestions would be greatly appreciated.
Puzzled,
Matt
it. The filter was the following:
Between [Forms]![DialogPrintfrm]![DateLow]+1 And
[Forms]![DialogPrintfrm]![DateHigh]
When trying to run the crosstab, the database gave me an error: "The Microsoft
Jet Database engine does not recongize "[Forms]![DialogPrintfrm]![DateLow]" as
a valid field name or expression."
So I put in the expression in the parameters along with the DateHigh. And I
ran the crosstab. It worked. I then went back to the query the crosstab is
based on and added more filters. Ones like this:
Like
(IIf(IsNull([Forms]![DialogPrintfrm]![MatchChosen]),"*","|[Forms]![DialogP
rintfrm]![MatchChosen]|"))
And it worked without giving me parameter problems. Surprising but true! I
put in four other filters like the one above and checked them all out. They
worked.
But I went back to the database a few days later and for some reason the
crosstab didn't work. It gave me the old message again about not recognizing
the filters. The subsequent ones. So after I put the troublesome filter in
the parameters, it would give me the next one it had issues with, then the
next, and the next.... I put them all in one at a time, and when I ran it, it
gave me nothing.
So why does it work one day and not the next? How does one work with filters
in Crosstabs. I just don't get it. In fooling around with them, trying to
solve this issue, all sorts of wierd things are happening.
The only way I see around it is to build a Make Table query between the two
queries; have the query with filters, make a table, and then the crosstab based
on the table. That would negate the filters.
Any help and suggestions would be greatly appreciated.
Puzzled,
Matt