I want to retrieve data between two days usins vb.net 2008 and sql server 2005
thing coding I used
when I put the highlighted coding nothing will be displayed
in sql I used the datetime data type
I save the data as
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