Hi i use RDC (CR8.5) to display reports. I'm finding it very difficult on how to use unbound fields in a report.
i use the following code on Report form,
so how can i use unbound fields for id & date. I wud really really appreciate any suggestions.
thnx!!!!
Mur.
i use the following code on Report form,
Code:
Dim cn As Connection
Dim rs As Recordset
Dim Report As New CrystalReport1
Private Sub Form_Load() 'report form
Set cn = New Connection
Set rs = New Recordset
cn.Open "provider=microsoft.jet.oledb.4.0;data source=d:\my.mdb"
rs.Open "select id,date from receipts where date=" & strDate, cn
Report.DiscardSavedData
Report.Database.SetDataSource rs, 3, 1
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
End Sub
so how can i use unbound fields for id & date. I wud really really appreciate any suggestions.
thnx!!!!
Mur.