Originally Posted by
June7
Actually, 'show last x weeks' criteria is probably going to get rather complicated.
On my first attempt at this DB, I managed to do a rolling chart for the revenue that showed the last 'x' days:
Using the following query criteria:
Code:
Between Date() And Date()-[Forms]![Dashboard].[txtDayCount]
Which I would consider pretty clever, but I stole it from somewhere on the internet. Anyways, I figure I can do the same thing but with my concatenated field, lets call it WeekYear. So
Code:
between Week(Date())&Year(Date()) And Week(Date())&Year(Date()) - [Forms]![Dashboard].[WeekYear]
However, that would only work if SQL will interpret the WeekYear data as integers or dates or something with a value attached so that the Between function works... which I'm not sure if it will. What do you think?