Código:
el error q me marca dice lo siguienteDim cad As New MySqlConnection("Server=localhost;Database=control_pacientes; Uid=root; Pwd=;") Dim sql As String = "SELECT * FROM Pacientes WHERE id1 =" & comboid.Text & "" Dim cmd As New MySqlCommand(sql, cad) cad.Open() Dim dr As MySqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection)------- aqui marca el error While dr.Read Dim value As Object = dr.Item("nombre") If value IsNot DBNull.Value Then TextBox1.Text = CStr(value) value = dr.Item("apellidos") If value IsNot DBNull.Value Then TextBox2.Text = CStr(value) End While dr.Close()
"no se controlo mysqlexception"
de antemano muchas gracias por la ayuda
Saludos
