Adodc1.CommandType = adCmdText
Adodc1.ConnectionString = conexion
Adodc1.RecordSource = "Select * From agenda_tb Where nombre='" & txtNombre.Text & "'"
Adodc1.Refresh
Adodc1.RecordSource = "Select * From agenda_tb Where nombre='" & txtNombre.Text & "'"
Adodc1.Recordset.Fields("nombre") = txtNombre.Text
Adodc1.Recordset.Fields("telefhab") = txtTelefHab.Text
Adodc1.Recordset.Fields("telefcel") = txtTelefCel.Text
Adodc1.Recordset.Fields("correo") = txtEmail.Text
Adodc1.Recordset.Fields("direccion") = txtDireccion.Text
Adodc1.Recordset.Update
Adodc1.Refresh
MsgBox "El Registro ha sido Actualizado", vbInformation, "Control de Registros"