Is there a trick to get my Crosstab query to read a text box from a form. I am trying to limit the date range to a calendar month in my Crosstab query. It works fine if I hard code the dates but I am striving for dynamic. The following is a date field:
I’ve tried having the Crosstab query draw from a another query that has this date range but I get the same message, “The Microsoft Jet database engine does not recognize ‘[Forms]![frmReports]![txtFirstOfThisMonth]’ as a valid field name or expression.” I DO have the reference form open and the text boxes formatted as "Short Date". Any ideas?
Tom
MCSD
I Nab Terrorists
Code:
Criteria: >=([Forms]![frmReports]![txtFirstOfThisMonth]) And <([Forms]![frmReports]![txtFirstOfNextMonth])
I’ve tried having the Crosstab query draw from a another query that has this date range but I get the same message, “The Microsoft Jet database engine does not recognize ‘[Forms]![frmReports]![txtFirstOfThisMonth]’ as a valid field name or expression.” I DO have the reference form open and the text boxes formatted as "Short Date". Any ideas?
Tom
MCSD
I Nab Terrorists