First of all, create a parameter field in your sub-report for the date. Then in you main report, right click on the sub report and select Change Subreport Links menu item. Mapp the date field in the main report to the parameter field you just created. A report selection formula will be built for you.