VB Code:
  1. Dim oapp As CRAXDRT.Application
  2.     Dim oreport As CRAXDRT.Report
  3.     Dim oRs As Recordset
  4.     Dim sSQL As String
  5.  
  6.     Set oRs = New Recordset
  7.     Set oRs = connect.Execute("SELECT * FROM tCommission where contno like '" & NContNo & "'")
  8.     Set oapp = New CRAXDRT.Application
  9.     Set oreport = oapp.OpenReport(App.Path & "\report1.rpt", 1) '\rptCommission
  10.     oreport.Database.SetDataSource oRs, 3, 1
  11.     RptCommission.ReportSource = oreport
  12.     RptCommission.ViewReport


it always display the first record in the table.. help pls...