hello,
I'm new to the forum and pretty new to access, so I hope someone can help me with this question.
I have a column in my database with the year and week in the following format:20141 for week 1 in 2014 and 201452 for week 52.
Now I would like to build an if then functions that returns the value of another column only if the week falls in the region "last 8 weeks".
As an example: for week 1 2015 the iff then function should return week 46-2014 - week 1 2015.
So far the below if then worked, however now that we are in the first week of the new year in only returns week 1 2015.
CW_LST8WK_QTY: IIf([tblData]![Week]>=([Forms]![frmImport]![txtWeek]-7) And [tblData]![Week]<=[Forms]![frmImport]![txtWeek],[tblData]![LAST_WEEK],Null)
Thank you for your help.
With best regards,
Jos