Hi Everyone,
I have this problem whit my code : ExecuteReader: Connection Property has not been initialized
and i don't know why
This is my code:
Dim maximo As Integer
Try
oConn = New OleDb.OleDbConnection(con)
oConn.Open() ' abrimos la base de datos
oComn = New OleDb.OleDbCommand("Select ID_ISSUE From ISSUE")
oRsRead = oComn.ExecuteReader() 'para leer la base de datos
While oRsRead.Read() ' ciclo para leer la base de datos
maximo = ("ID_ISSUE")
End While
oConn.Close() 'se cierra la base
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
MsgBox(maximo)
MessageBox.Show(ex.Message)
End Try
MsgBox(maximo)
Thanks