B
Brian
I have a report based on a crosstab query. The query runs fine and obeys the
date parameters taken froma calendar control. The report based on this same
query will not run. The report is fine if I remove the paramters but trying
to run it from the parameter control I get this message "Microsoft Jet
Database does not recognise " as a valid field name or expression. I have
made sure the input form does not close before the report is run. I have also
moved the parameters to an earlier stage of the query build and not on the
crosstab itself (I read on this site it was better practice). The query is
written as follows-
Design View
Field =TransDate
Between [Forms]![Main Menu]![txtstartdate] And [forms]![Main
Menu]![txtenddate]
SQL View
PARAMETERS [forms]![Main Menu]![txtstartdate] DateTime, [forms]![Main
Menu]![txtenddate] DateTime;
SELECT [QyPLINV&EXP].TransDate, [QyPLINV&EXP].Amt, [QyPLINV&EXP].DebExp
FROM [QyPLINV&EXP]
WHERE ((([QyPLINV&EXP].TransDate) Between [Forms]![Main Menu]![txtstartdate]
And [forms]![Main Menu]![txtenddate]));
Can Any body Help?
date parameters taken froma calendar control. The report based on this same
query will not run. The report is fine if I remove the paramters but trying
to run it from the parameter control I get this message "Microsoft Jet
Database does not recognise " as a valid field name or expression. I have
made sure the input form does not close before the report is run. I have also
moved the parameters to an earlier stage of the query build and not on the
crosstab itself (I read on this site it was better practice). The query is
written as follows-
Design View
Field =TransDate
Between [Forms]![Main Menu]![txtstartdate] And [forms]![Main
Menu]![txtenddate]
SQL View
PARAMETERS [forms]![Main Menu]![txtstartdate] DateTime, [forms]![Main
Menu]![txtenddate] DateTime;
SELECT [QyPLINV&EXP].TransDate, [QyPLINV&EXP].Amt, [QyPLINV&EXP].DebExp
FROM [QyPLINV&EXP]
WHERE ((([QyPLINV&EXP].TransDate) Between [Forms]![Main Menu]![txtstartdate]
And [forms]![Main Menu]![txtenddate]));
Can Any body Help?