I have no problem when I use the following date filter with a Simple Query:
Between [StartDate] And [EndDate]
But I am running into an impasse when I have a query which is referencing a Crosstab query.
I want to filter the results between two dates.
For example, the following works just fine - even when a Crosstab Query is involved:
Between #1/1/2012# And #3/1/2012#
But of course I would prefer to use a variable rather than "hardcode" the dates. But when a Crosstab Query is involved and I use something like the following:
Between [StartDate] And [EndDate]
I always get this error message:
"The Microsoft Access database engine does not recognize '[StartDate]' as a valid field name or expression."
Can't figure out a solution.
Between [StartDate] And [EndDate]
But I am running into an impasse when I have a query which is referencing a Crosstab query.
I want to filter the results between two dates.
For example, the following works just fine - even when a Crosstab Query is involved:
Between #1/1/2012# And #3/1/2012#
But of course I would prefer to use a variable rather than "hardcode" the dates. But when a Crosstab Query is involved and I use something like the following:
Between [StartDate] And [EndDate]
I always get this error message:
"The Microsoft Access database engine does not recognize '[StartDate]' as a valid field name or expression."
Can't figure out a solution.
Comment