I used the information I found here and on Ken Hamandy's site to create a report. The function of the report is to find all orders that filled on three consecutive business dates. I created a Parameter called {?Start Date} and three formulas--{@Holidays}, {@DatePlusOne} and {@DatePlusTwo}. The DatePlusOne and DatePlusTwo are exactly the same as Ken Hanamy's site, with the changes to the input and the days added. Holidays simply shows some business holidays.
Here is my selection statement:
{Trans.AC9} = <account number that we're searching for>
and
{Trans.BuySell} in ["B", "S"] //indicates buy or sell
and
(
{Trans.EffDate} = {?Start Date}
or
{Trans.EffDate} = {@DatePlusOne}
or
{Trans.EffDate} = {@DatePlusTwo}
)
If I run the report with this, it runs forever while records run across the bottom. I let it run for 15 hours before I stopped it. If I change the selection to show {?Start Date}+1 and {?Start Date}+2 it finishes in seconds.
What the heck am I doing wrong!?
Here is my selection statement:
{Trans.AC9} = <account number that we're searching for>
and
{Trans.BuySell} in ["B", "S"] //indicates buy or sell
and
(
{Trans.EffDate} = {?Start Date}
or
{Trans.EffDate} = {@DatePlusOne}
or
{Trans.EffDate} = {@DatePlusTwo}
)
If I run the report with this, it runs forever while records run across the bottom. I let it run for 15 hours before I stopped it. If I change the selection to show {?Start Date}+1 and {?Start Date}+2 it finishes in seconds.
What the heck am I doing wrong!?