Ok here's how I did it,
Dim Report As New CrystalReport1
Dim rptCNN As New ADODB.Connection
Dim rptRS as New ADODB.Recordset
Private Sub Form Load()
Set rptCNN = New ADODB.Connection
Set rptRS = New ADODB.Recordset
rptCNN.Open "your connection details go in here"
rptRS.Open "SELECT * FROM yourtable WHERE Date >= " & yourmindate & " AND Date <= " & yourmaxdate, rptCNN
Screen.MousePointer = vbHourGlass
Report.Database.SetDataSource rptRS
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub
Private Sub Form_Resize
CRViewer1.Top = 0
CRViewer1.Left = 0
CRViewer1.Height = ScaleHeight
CRViewer1.Width = ScaleWidth
End Sub
Private Sub Form_Unload(Cancel As Integer)
'kill instances created
Set Report = Nothing
rptRS.Close
Set rptRS = Nothing
rptCNN.CLose
Set rptCNN = nothing
End Sub