I am trying to send parameters to CR from VB.
cr.ReportFileName = App.Path & "\credittally.rpt"
i = 0
cr.ParameterFields(i) = "b;Date(" & Format(sdate, "yyyy,mm,dd" & "True"
i = i + 1
cr.ParameterFields(i) = "e;Date(" & Format(EDate, "yyyy,mm,dd" & "True"
cr.Action = 1
However, I keep getting the parameter prompt box when I run the code for the report.
Any ideas on what I am doing wrong or any suggestions?
cr.ReportFileName = App.Path & "\credittally.rpt"
i = 0
cr.ParameterFields(i) = "b;Date(" & Format(sdate, "yyyy,mm,dd" & "True"
i = i + 1
cr.ParameterFields(i) = "e;Date(" & Format(EDate, "yyyy,mm,dd" & "True"
cr.Action = 1
However, I keep getting the parameter prompt box when I run the code for the report.
Any ideas on what I am doing wrong or any suggestions?