Hi all
I am using data reports with out data environment.Here i am displaying the report using a table. But i am not able to display the selected records.
For e.g. A report displays Student id, Name and result.
But i want to display the results of only the passed students.can anyone please tell me How i do this?


I have used the following code:

VB Code:
  1. Private Sub DataReport_Initialize()
  2. 'Procedure to connect database
  3. connection
  4.  
  5. strSQL = "SELECT * from tblstudent"
  6. Set rs = New ADODB.Recordset
  7. rs.Open strSQL, cn, adOpenDynamic, adLockOptimistic
  8. Set DataReport1.DataSource = rs
  9. End Sub