C
croy
When I enter,
"Between [Forms]![frmStartExpansion]![txtStart] And
[Forms]![frmStartExpansion]![txtEnd]"
on the criteria line in a certain query (qryA), it runs
fine.
But later on, when I base a crosstab query on qryA, I get an
error message stating that the jet engine doesn't recognize,
'[Forms]![frmStartExpansion]![txtStart]' as a valid field
name or expression.
The built-in Help points me toward specifically stating the
parameter and its data-type.
But when I put,
"Between [Forms]![frmStartExpansion]![txtStart] And
[Forms]![frmStartExpansion]![txtEnd]"
as a parameter (in the query parameter dialog, and claim it
to be a Date & Time field, and then try to run the query, an
error comes up stating, "Invalid bracketing of name 'Between
[Forms]![frmStartExpansion]![txtStart] And
[Forms]![frmStartExpansion]![txtEnd]'."
I've tried all the variations that I can think of.
Is there a way to do this that will work?
"Between [Forms]![frmStartExpansion]![txtStart] And
[Forms]![frmStartExpansion]![txtEnd]"
on the criteria line in a certain query (qryA), it runs
fine.
But later on, when I base a crosstab query on qryA, I get an
error message stating that the jet engine doesn't recognize,
'[Forms]![frmStartExpansion]![txtStart]' as a valid field
name or expression.
The built-in Help points me toward specifically stating the
parameter and its data-type.
But when I put,
"Between [Forms]![frmStartExpansion]![txtStart] And
[Forms]![frmStartExpansion]![txtEnd]"
as a parameter (in the query parameter dialog, and claim it
to be a Date & Time field, and then try to run the query, an
error comes up stating, "Invalid bracketing of name 'Between
[Forms]![frmStartExpansion]![txtStart] And
[Forms]![frmStartExpansion]![txtEnd]'."
I've tried all the variations that I can think of.
Is there a way to do this that will work?