A
Access Newbie Nick
I have a query that i can filter by month with input like 'December 2008'.
The end of the query is as follows,
HAVING (((MonthName(DatePart("m",[income del note].[Delivery Date])) & " " &
Format$([income del note].[Delivery Date],"yyyy"))=IIf(IsNull([Enter Month
and Year (Name_YYYY)]),MonthName(DatePart("m",[income del note].[Delivery
Date])) & " " & Format$([income del note].[Delivery Date],"yyyy"),[Enter
Month and Year (Name_YYYY)])));
However when i try to use a similar one in another query
WHERE (((MonthName(DatePart("m",[Invoice Date])) & " " & Format$([Invoice
Date],"yyyy"))=IIf(IsNull([Enter Month and Year
(Name_YYYY)]),MonthName(DatePart("m",[Invoice Date])) & " " &
Format$([Invoice Date],"yyyy"),[Enter Month and Year (Name_YYYY)])));
I get the message 'this expression is typed incorrectly, or is too complex
to be evaluated'.
Could anyone give an explanation into why this is happening?
Thank you in advance
The end of the query is as follows,
HAVING (((MonthName(DatePart("m",[income del note].[Delivery Date])) & " " &
Format$([income del note].[Delivery Date],"yyyy"))=IIf(IsNull([Enter Month
and Year (Name_YYYY)]),MonthName(DatePart("m",[income del note].[Delivery
Date])) & " " & Format$([income del note].[Delivery Date],"yyyy"),[Enter
Month and Year (Name_YYYY)])));
However when i try to use a similar one in another query
WHERE (((MonthName(DatePart("m",[Invoice Date])) & " " & Format$([Invoice
Date],"yyyy"))=IIf(IsNull([Enter Month and Year
(Name_YYYY)]),MonthName(DatePart("m",[Invoice Date])) & " " &
Format$([Invoice Date],"yyyy"),[Enter Month and Year (Name_YYYY)])));
I get the message 'this expression is typed incorrectly, or is too complex
to be evaluated'.
Could anyone give an explanation into why this is happening?
Thank you in advance