Use dataset to grab column and code behind to hold your query. For example:
Dim myReport As New rpt01
Dim strSQL As String
Dim dtTemp As New ds.dtrptDataTable
Dim OleDbConn As New OracleConnection(ConnString)
Dim OleDbCmd As New OracleCommand
Dim OleDbAdapter As New OracleDataAdapter
Try
If OleDbConn.State = ConnectionState.Closed Then OleDbConn.Open()
strSQL = "select * from yourtable"
OleDbCmd.CommandText = strSQL
OleDbCmd.Connection = OleDbConn
OleDbAdapter.SelectCommand = OleDbCmd
OleDbAdapter.Fill(dtTemp)
myReport.DataSource = dtTemp
myReport.DataMember = dtTemp.TableName
Finally
If OleDbConn.State = ConnectionState.Open Then OleDbConn.Close()
End Try
<pre>