Crystal reports loop question
Posted on 2011-02-17
I have a report that has a sub report that does some processing. The parameter to the sub report is a year. I want to call the sub report for a range of years. This is provided by the user as a parameter.
So the user may enter a range of 2007 to 2010. So then i want to call the sub report for the years 2007, 2008, 2009, 2010. Another time a different range would be entered.
Is this possible? The main report does not have any "data" and no database connection of its own... i just would like to somehow use the parameter range to call the sub report for each value in the range.
Really its just a for loop... would be great if i could put the sub report in the details section and then execute it for the supplied range.