acenterprises
MIS
I am using Crystal 2008 and my data is coming from sql server.
I have a crystal report that prompts the user for a month.
The parameter is defined as a number and is dynamic. I also have it set to true to allow multiple values.
Once this is selected, I need to for the report to show the following fields:
current month, previous months and 2 months prior.
In the current month formula, i'm trying to use a select statement to capture the values I want.
Current Month:
Select ({?Date})
Case 1 :
{@Month 1}
Case 2 :
{@Month 2}
Case 3 :
{@Month 3}
etc....
For the previous month formula, I would use the same select statement, except it will be
Select ({?Date}-1).
Problem is that I get an error that says : This array must be subscripted.
Can someone help me out.
Thanks
I have a crystal report that prompts the user for a month.
The parameter is defined as a number and is dynamic. I also have it set to true to allow multiple values.
Once this is selected, I need to for the report to show the following fields:
current month, previous months and 2 months prior.
In the current month formula, i'm trying to use a select statement to capture the values I want.
Current Month:
Select ({?Date})
Case 1 :
{@Month 1}
Case 2 :
{@Month 2}
Case 3 :
{@Month 3}
etc....
For the previous month formula, I would use the same select statement, except it will be
Select ({?Date}-1).
Problem is that I get an error that says : This array must be subscripted.
Can someone help me out.
Thanks