I have created a report that has a subreport within it. The subreport does not relate to the master report (no linking fields). The report and subreport are based on parameter queries. The parameters are derived from a previous form. Is there way of filling in the parameter values to feed the query which feeds the report? I've tried this in the open report event with no luck.
Does anyone have any suggestions?
Thanks,
Rewdee
Code:
With CurrentDb.QueryDefs("qryPreRptPayCosts")
.Parameters("paramStart").Value = Forms!frmRptPaySumParams!dtpStart.Date
.Parameters("paramEnd").Value = Forms!frmRptPaySumParams!dtpEnd.Date
End With
With CurrentDb.QueryDefs("qryFinRptPayCosts")
.Parameters("paramStart").Value = Forms!frmRptPaySumParams!dtpStart.Date
.Parameters("paramEnd").Value = Forms!frmRptPaySumParams!dtpEnd.Date
End With
Does anyone have any suggestions?
Thanks,
Rewdee