0

Hi folks..

I want to display the crystal report according to the date that user select...If User changes the date means it should change the report according to that...
In my applocation two date picker and one button is ter ,if user select from date and to date means it should display the report between that date..

plz help me asps...

2
Contributors
1
Reply
3
Views
9 Years
Discussion Span
Last Post by Jx_Man
0

try This :

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        CrystalReportViewer1.SelectionFormula = "Date({TableName.FieldName}) >= #" & dtStartDate.Value & "# And Date({TableName.FieldName}) <= #" & dtEndDate.Value & "#"
        CrystalReportViewer1.RefreshReport()

End Sub
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.