Hey Guys,
I am trying to create a class that makes use of the SQL DataReader but I keep getting this error:
'system.data.sqlclient.sqldatareader.private sub new(command as system.data.sqlclient.sqlcommand') is not accessibe in this context becase it is 'private'
Here is the declarations for my class where I am getting this error the line in question is
dim mySQLRead as new SqlDataReader
Code:Public Class SQLDatabase Dim mySQLConnection As New SQLConnection Dim mySQLCommand As New SQLCommand Dim mySQLDataAdpater As New SqlDataAdapter Dim mySQLRead As New SqlDataReader End Class


Reply With Quote
