I find myself using crosstab queries frequently and am baffled about this one issue. If anyone as insight to this, I would love to hear it.
For the recordsource for the crosstab, I use a query, for this example, I will call it query1. query1 will have the following criteria in a date field:
Between Forms!NameOfForm!StartOfDateField and Forms!NameOfForm!EndOfDateField
However when I attempt to run the crosstab, I get the following msg:
"The Microsoft Jet Database does not recognize Forms!NameOfForm!StartOfDateField as a valid field name or expression.
I know it's valid as I can run many other queries, that the logic was copied out of and they all work.
I've also attempted the same criteria within the crosstab using a WHERE statement, but it returns the same msg.
I can still accomplish what I'm after by running make table queries and using the tables as the recordsources for the crosstabs, but I shouldn't have to do that.
What seems to be the issue with the crosstab queries that prohibit the ability to call a criteria such as this.
Thanks in advance for any insight.
p.s. and yes the form that holds the DATES is OPEN
For the recordsource for the crosstab, I use a query, for this example, I will call it query1. query1 will have the following criteria in a date field:
Between Forms!NameOfForm!StartOfDateField and Forms!NameOfForm!EndOfDateField
However when I attempt to run the crosstab, I get the following msg:
"The Microsoft Jet Database does not recognize Forms!NameOfForm!StartOfDateField as a valid field name or expression.
I know it's valid as I can run many other queries, that the logic was copied out of and they all work.
I've also attempted the same criteria within the crosstab using a WHERE statement, but it returns the same msg.
I can still accomplish what I'm after by running make table queries and using the tables as the recordsources for the crosstabs, but I shouldn't have to do that.
What seems to be the issue with the crosstab queries that prohibit the ability to call a criteria such as this.
Thanks in advance for any insight.
p.s. and yes the form that holds the DATES is OPEN
Last edited: