tengo el siguiente codigo pero al ejecutarlo me sale un msgbox que dice:
no data exists for the row/column, no hay datos en la columna o fila
Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnbus.Click
conexion = New OdbcConnection("dsn=conexión_vb; uid= root; pwd= 123456;")
sql = " select nombre, apellido from docentes where identificacion= " & txtid.Text & ""
comando = New OdbcCommand(sql, conexion)
Try
conexion.Open()
leer = comando.ExecuteReader()
txtnombre = leer(1)
Txtap = leer(2)
Catch ex As Exception
MsgBox(ex.Message)
End Try




LinkBack URL
About LinkBacks
