I have a simple crosstab query. the column heading is an aging based upon the invoice date vrs a date to be entered by the user. so for example the invoice date is 12/10/2009. The user enters 12/31/2009 so the query would "age" this as 9 - 30 days old. However if the user entered say 12/15/2009 then it would show as 1 - 8 days old. etc.
aging
ateDiff("d",[enter date MM/DD/YYYY],[DUE_DATE]))>0,"Not Due, DateDiff("d",[enter date MM/DD/YYYY],[DUE_DATE])) between 1 and 8,"1 - 8",
basically it is just a simple 6 nested "iif" statment to age the invoices from not due, 1-8, 9-30, 31-60, 61-90 & >90
if I run it as a select query no problem, it asks for the "Enter Date MM/DD/YYY and you can enter any date and the query returns the correct answer.
However as soon as I make it a crosstab query and choose "aging" as my column I get this error message.
The Microsoft Jet database engine does not recognize [Enter Date MM/DD/YYYY] as a valid field name or expression.
I tried creating a select query with the parameter item in it, then base the crosstab query on the select query, same error message.
any suggestions?
aging

basically it is just a simple 6 nested "iif" statment to age the invoices from not due, 1-8, 9-30, 31-60, 61-90 & >90
if I run it as a select query no problem, it asks for the "Enter Date MM/DD/YYY and you can enter any date and the query returns the correct answer.
However as soon as I make it a crosstab query and choose "aging" as my column I get this error message.
The Microsoft Jet database engine does not recognize [Enter Date MM/DD/YYYY] as a valid field name or expression.
I tried creating a select query with the parameter item in it, then base the crosstab query on the select query, same error message.
any suggestions?