I keep receiving "Object reference not set to an instance of an object" error when trying to run this code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim dtr As OleDbDataReader
Dim strSQL As String = "Select * From Complex PracticeOral3"
Dim clsDA As New DataAccess.DBConn()
dtr = clsDA.getDataReader(strSQL
)
lblQuestion.Text = dtr("Question")
End Sub
What am I doing wrong?
Start Free Trial