Skip to Content
0
Former Member
May 17, 2007 at 11:31 PM

Vb.net 2005 Main Report Sub Report Selection Formula

9 Views

Hi. all

I am new to this ..

I developed a vb.net package and using crystal report vb.net 2005.

selection formula for main report is working

. CrystalReportViewer1.RefreshReport()

Dim dt As String

dt = Format(dt1.Value, "yyyy,MM,dd")

Dim sf As String

sf = "{LLINVOICE.CODE}='" & TextBox1.Text & "' and {LLINVOICE.I_DATE} in Date (" & dt & ") to Date (" & dt & ")"

CrystalReportViewer1.ReportSource = "C:\CrystalReport3.rpt"

I have a selection criteria in sub report too, which select same as LLINVOICE.Code

BUT DATE SELECTION IS DIFFERENT OF MAIN.

PLS TELL ME HOW TO MAKE SELECTION FOR MY SUBREPORT.

Thnaks in advance

Naseem