Friday, April 01, 2011

Crystal Report Selection Formula


Dim strSelectionFormula As String = "{Employees.BirthDate} in #" & _
        DateTimePicker1.Value & "# to #" & DateTimePicker2.Value & "#" & _
        " AND {Employees.Title} = '" & ComboBox1.Text & "'"
        CrystalReportViewer1.SelectionFormula = strSelectionFormula
       CrystalReportViewer1.RefreshReport()
        

No comments:

Post a Comment

Thanks for showing your interest
I will shortly get back to you