The next step is to add the selection formula so the report
only selects the data between the start and end dates entered by the user.
1.
From the Crystal Reports menu in Visual Studio select ReportàSelection FormulaàRecord…
2.
Enter the following formula.
{SalesOrderHeader.OrderDate} >= {?Start Date} and
{SalesOrderHeader.OrderDate} <= {?End Date}
The parameter fields can be used in a formula by using the {?Start Date} and {?End Date} syntax.
3.
Click Save and close.