Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

I want to retrive data between two dates to Crystal report

$
0
0
I want to retrieve data between two days usins vb.net 2008 and sql server 2005
thing coding I used
   Dim cryRpt As New ReportDocument
       

       [color="#008000"] CrystalReportViewer1.SelectionFormula = "{sell.Date}>=#" & DateTimePicker2.Value.Date & "# and {sell.Date}<=#" & DateTimePicker1.Value.Date & "#"[/color]
        cryRpt.Load("G:\Sales and inventory system\CrystalReport9.rpt")
        CrystalReportViewer1.ReportSource = cryRpt
        CrystalReportViewer1.Refresh()

when I put the highlighted coding nothing will be displayed
in sql I used the datetime data type
I save the data as
Dim date1 as date=DateTimePicker2.Value.Date 

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>