I have a main report which accept one parameter and populate report data. In the same report I have subreport which accept the same paramter for detail. I am using SQL stored procedure in my reports and I am working in VB6. Here is my code:
Private Sub Command1_Click()
.ReportFileName = "C:\IMT\REPORTS\KHReceipt.rpt"
T = LTrim(RTrim(txtMessageNo.Text))
.StoredProcParam(0) = T
.Action = 1
this routine is working fine if there is no subreport but when I add my subreport for detail, it prompt for subreport paramater value. So my question is how can I pass parameter value to my subreport?