KristieLee1
Technical User
I have prompts for both month and year. My report shows both current month information and prior month information.
In order to show prior month information I have this...
?Month?-1, which I know is wrong.
What I need is something like this:
If ?Month?-1 = 0 then 12 (because what I need to return is December info and there is no 0 month) Else ?Month?-1
Also, if the prior month is 12, then the Year needs to be the prior year as well...
So if ?Month?-1 = 12 then ?Year? should be ?Year?-1 also.
I've tried Case statements and If statements.
I have two separate prompts, one for year and one for month.
Example User enters 1 in month prompt and 2009 in year prompt. My report will show data for jan 2009, and should show data for december 2008 as well.
Any help is appreciated. Thank you in advance.
In order to show prior month information I have this...
?Month?-1, which I know is wrong.
What I need is something like this:
If ?Month?-1 = 0 then 12 (because what I need to return is December info and there is no 0 month) Else ?Month?-1
Also, if the prior month is 12, then the Year needs to be the prior year as well...
So if ?Month?-1 = 12 then ?Year? should be ?Year?-1 also.
I've tried Case statements and If statements.
I have two separate prompts, one for year and one for month.
Example User enters 1 in month prompt and 2009 in year prompt. My report will show data for jan 2009, and should show data for december 2008 as well.
Any help is appreciated. Thank you in advance.