I am creating a datareader from a table residing on an ACCESS 2000 database. Following is the code I am using.
Dim dbConnection As OleDbConnection = New OleDbConnection
dbConnection.ConnectionString = gbConnectionString
Dim myCommand As OleDbCommand = New OleDbCommand
myCommand.Connection = dbConnection
myCommand.CommandText = strSelectStatement
Dim datRead As New OleDbDataReader
Under the datRead I am getting the blue underline stating that "is not accessible in this context because it is 'Private'".
Can any one please advise?
Many thanks in advance
Dim dbConnection As OleDbConnection = New OleDbConnection
dbConnection.ConnectionString = gbConnectionString
Dim myCommand As OleDbCommand = New OleDbCommand
myCommand.Connection = dbConnection
myCommand.CommandText = strSelectStatement
Dim datRead As New OleDbDataReader
Under the datRead I am getting the blue underline stating that "is not accessible in this context because it is 'Private'".
Can any one please advise?
Many thanks in advance