Re: problem with datareport
Re: problem with datareport
It depends on how you set the datasource for your report. Your datasource should contain only the record you want to print.
Re: problem with datareport
yeah
there are lot of records
lets say record 1, 2, 3, 4, 5 now im currently browsing record 3, wat i want is when i press print button it will show the datareport displaying record 3 not record 1.
Re: problem with datareport
Have you looked into this?
Re: problem with datareport
Code:
Dim rsR as new ADODB.Recordset
rsr.Open "Select * from yourtable where yourfieldname='" & selectedrecord & "'",conYourconnection
With DataReport1
set .Datasource = rsR
.Datamember = rsR.Datamember
.Show
End With