I work with MS Access 2003.
I am creating a query to show all contracts set up in a certain year that have been cancelled in that specific year. This "Cancelled" field is not a yes/no field, but includes the date on which it has been cancelled (always starting 31/12/YYYY).
First, to show me the contracts set up in a certain year (say 2008) , i created a parameter under the "Contract Year" field, asking which year you want to see (In this case 2008).
I wish to add a criteria that then shows cancelled contracts at the end of that specific year, so 31/12/2008. So the "2008" is dependent on the value in the "Contract Year" field.
I tried the following as criteria for the Column "Cancelled":
#31/12/[Contract Year]#
to try and have it take the year mentioned in that field.
But it doesn't work. I tried adding LIKE to it and the &-sign, still no luck.
Is it possible to use a field name in a date criteria and if so, how could i do it?
Thank you very much in advance for your help.