I have a report in crystal that takes over 15 minutes to run so i need to create a stored procedure. What takes up the time is I have week to date data and mtd data in the main report then year to date data in a sub report - The following are the formulas in Report Select Expert for each section
main report - Transaction_History.Post_Date in formula:
Date({Transaction_History.Post_Date}) in
Date(Year({?EndDate}),Month({?EndDate}),01) to
{?EndDate}
Year to date sub report - Transaction_History.Post_Date in formula:
date({Transaction_History.Post_Date}) in date
(year({?EndDate}),01,01) to {?EndDate}
to clarify: the user is prompted and puts in a month start and end date ie, 7/1/02 to 7/31/02.
the main
the year to date in the sub report and is saying always give me january 1 of what ever year the user puts in
?EndDate prompt.
I do not know how to put that in a stored procedure.
Any help would be appreciated.
k- tried to help with some modifications within Crystal but it did not help.
Thanks all.
main report - Transaction_History.Post_Date in formula:
Date({Transaction_History.Post_Date}) in
Date(Year({?EndDate}),Month({?EndDate}),01) to
{?EndDate}
Year to date sub report - Transaction_History.Post_Date in formula:
date({Transaction_History.Post_Date}) in date
(year({?EndDate}),01,01) to {?EndDate}
to clarify: the user is prompted and puts in a month start and end date ie, 7/1/02 to 7/31/02.
the main
the year to date in the sub report and is saying always give me january 1 of what ever year the user puts in
?EndDate prompt.
I do not know how to put that in a stored procedure.
Any help would be appreciated.
k- tried to help with some modifications within Crystal but it did not help.
Thanks all.