no, its not. i'm simplifying the situation. let me give you the real variables i am using, maybe this will help.
PYOY-1CurrMonth
PYOY-2CurrMnth
YOYLastMnth
YOYLastQtr
YOYCurrQtr = "[qtr]=2 and [fy] = 2009" (based on d look up to tblfsclcal)
YOYLastWk
PYOY-3LastMnth
etc,,,
I have all these variables defined as a Dlookup on a table I created called tblFiscalCalendar. This table defines the company's week #, qtr #, and month# for every day.
Based on user input, I am setting the three temp variables: var1, var2, and var3.
var1 = yoy or pyoy, pyoy-1, pyoy-2, pyoy-3, etc.
var2 = curr or prior
var3 = month or week or qtr or year
then for a 4th variable, I am combining all three
var 4 = var1& var2 & var3
so as an example, the output is "YOYCurrQtr".
But really what I want to be is "[qtr]=2 and [fy] = 2009"
(YOYCurrQtr is a variable i have defined above)
|