Hi,
I am doing a select expert formula that involves the usage of multiple parameters.
I am doing a report where the user wants to display the data for 3 months in the same report. Initially to achieve this I had created 3 parameters (Month, Month2, Month3). The month entered by the user was compared to a date field in the report (PropEffDate) in my database. So, my report had other select expert criteria and "Month of PropEffDate is one of Month, Month2 or Month3"
Since now we are in a new year, this formula does not work as well anymore. Bec. now if a user enters "1" for the month, it gives him Jan 2001 and Jan 2002 data. So, I need ot put in a prompt for the year too.
There are 2 problems I am running into.
First, I added three more prompts for the year (Year1, Year2, Year3). However, when a user runs the report, the reports prompts in this order: Month1, Month2, Month3, Year1, Year2, Year3.
Is there a way to change this order and prompt like this: Month1, Year1, Month2, Year2, Month3, Year 3
Second Problem:
Here is my select expert formula:
{Office.Office Number} = 189.00 and
{Proposal.Total Lives} >= 50.00 and
({@Year of PropEffDate} = {?3rd Year} and {@MonthOfPropEffDate} = {?Month 3}) or
({@Year of PropEffDate}={?2nd Year} and {@MonthOfPropEffDate}= {?Month 2}) or
({@Year of PropEffDate}={?1st Year} and {@MonthOfPropEffDate}={?Month})
But no matter how I add the parentheses, if I have an "Or" with "AND" in my select expert, it ignores the ANDS and the other criterias and treats all the AND in the report as OR too.
Has this happened to someone else too. This has happened with me in previous reports too.
sorry this is so long.
I would appreciate any help on this.
thanks
Jodie
I am doing a select expert formula that involves the usage of multiple parameters.
I am doing a report where the user wants to display the data for 3 months in the same report. Initially to achieve this I had created 3 parameters (Month, Month2, Month3). The month entered by the user was compared to a date field in the report (PropEffDate) in my database. So, my report had other select expert criteria and "Month of PropEffDate is one of Month, Month2 or Month3"
Since now we are in a new year, this formula does not work as well anymore. Bec. now if a user enters "1" for the month, it gives him Jan 2001 and Jan 2002 data. So, I need ot put in a prompt for the year too.
There are 2 problems I am running into.
First, I added three more prompts for the year (Year1, Year2, Year3). However, when a user runs the report, the reports prompts in this order: Month1, Month2, Month3, Year1, Year2, Year3.
Is there a way to change this order and prompt like this: Month1, Year1, Month2, Year2, Month3, Year 3
Second Problem:
Here is my select expert formula:
{Office.Office Number} = 189.00 and
{Proposal.Total Lives} >= 50.00 and
({@Year of PropEffDate} = {?3rd Year} and {@MonthOfPropEffDate} = {?Month 3}) or
({@Year of PropEffDate}={?2nd Year} and {@MonthOfPropEffDate}= {?Month 2}) or
({@Year of PropEffDate}={?1st Year} and {@MonthOfPropEffDate}={?Month})
But no matter how I add the parentheses, if I have an "Or" with "AND" in my select expert, it ignores the ANDS and the other criterias and treats all the AND in the report as OR too.
Has this happened to someone else too. This has happened with me in previous reports too.
sorry this is so long.
I would appreciate any help on this.
thanks
Jodie