phendrena
05-06-2009, 02:57 AM
Hi,
I am having a problem with some criteria used in a crosstab query. The code below should filter the Month (Row) based on the users choice in the Report Wizard form. When used in a simple query the code works fine.
IIf([Forms]![Report Wizard]![cboMonth]<>"",[Forms]![Report Wizard]![cboMonth],[Month])
When used in the crosstab query I get the following error :
'The microsoft jet database doesn't recognise '[Forms]![Report Wizard]![cboMonth]' as a valid field name or expression.
Where am I going wrong with the crosstab?
Thanks,
I am having a problem with some criteria used in a crosstab query. The code below should filter the Month (Row) based on the users choice in the Report Wizard form. When used in a simple query the code works fine.
IIf([Forms]![Report Wizard]![cboMonth]<>"",[Forms]![Report Wizard]![cboMonth],[Month])
When used in the crosstab query I get the following error :
'The microsoft jet database doesn't recognise '[Forms]![Report Wizard]![cboMonth]' as a valid field name or expression.
Where am I going wrong with the crosstab?
Thanks,