I using Crystal 8.5 and an Oracle database
I wanted a users to run a sales order report twice per day. The first time frame would be the previous date at 4:30:01PM to current day at 12:00:00PM. The second time frame would be current date at 12:00:01PM to 4:30:00PM. That would cover all Orders for a 24 hour period.
I added to 2 parameters with Date and Time.... and put them in the Select Expert, 'is between' {?From_Date} and {?To_Date}
The report runs fine......
I would like to make it easier for the users (not to type in the time 12:00:01PM all the time)
I added 2 parameters. Run_Date (formatted to Date) and First_or_Second_Run( users puts in 1 or 2)
Wrote formulas.....
'From_Date1' ({?Run_Date} -1) + TimeValue (04,30,01 )
'To_Date1' CurrentDate +
TimeValue (12,00,00 )
'From_Date2' CurrentDate
+ TimeValue (12,00,01 )
'To_Date2' CurrentDate +
TimeValue(04.30.00)
'From'
If{?First_or_Second_Run} = 1 Then
{@From_Date1}
Else
{@To_Date1}
'To'
If{?First_or_Second_Run} = 1 Then
{@From_To2}
Else
{@To_To2}
If I just display @Form_To1 , @Form_To2, @To_Date1, @To_Date2 they look fine. (2/14/2010 4:00:00PM)
If I add the 2 formulas to the Select Export as 'is between' @From and @To the report just sits there and takes forever to run (if it runs at all)
Did I do something wrong?? or is there a better way to do this???
Thanks
I wanted a users to run a sales order report twice per day. The first time frame would be the previous date at 4:30:01PM to current day at 12:00:00PM. The second time frame would be current date at 12:00:01PM to 4:30:00PM. That would cover all Orders for a 24 hour period.
I added to 2 parameters with Date and Time.... and put them in the Select Expert, 'is between' {?From_Date} and {?To_Date}
The report runs fine......
I would like to make it easier for the users (not to type in the time 12:00:01PM all the time)
I added 2 parameters. Run_Date (formatted to Date) and First_or_Second_Run( users puts in 1 or 2)
Wrote formulas.....
'From_Date1' ({?Run_Date} -1) + TimeValue (04,30,01 )
'To_Date1' CurrentDate +
TimeValue (12,00,00 )
'From_Date2' CurrentDate
+ TimeValue (12,00,01 )
'To_Date2' CurrentDate +
TimeValue(04.30.00)
'From'
If{?First_or_Second_Run} = 1 Then
{@From_Date1}
Else
{@To_Date1}
'To'
If{?First_or_Second_Run} = 1 Then
{@From_To2}
Else
{@To_To2}
If I just display @Form_To1 , @Form_To2, @To_Date1, @To_Date2 they look fine. (2/14/2010 4:00:00PM)
If I add the 2 formulas to the Select Export as 'is between' @From and @To the report just sits there and takes forever to run (if it runs at all)
Did I do something wrong?? or is there a better way to do this???
Thanks