Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Formulario de Busqueda
Formulario de Busqueda
TextBox1 TxtIndicio
RadioButton1 RBNombre
RadioButton2 RBApellido
RadioButton3 RBDireccion
RadioButton4 RBTelefono
RadioButton5 RBCedula
Button1 BtnBuscar
Button2 BtnVolver
DataGridView1 DGVDatos
DGVDatos.DataSource = almacen
DGVDatos.DataMember = "Paciente"
DGVDatos.Refresh()
DGVDatos.ReadOnly = True
End If
If RBDireccion.Checked = True Then
conexion.Open()
sql = "SELECT * FROM Paciente WHERE Direccion LIKE '%" & Likeit & "%' ORDER
by Direccion"
adaptar = New OleDbDataAdapter(sql, conexion)
conexion.Close()
almacen = New DataSet
adaptar.Fill(almacen, "Paciente")
DGVDatos.DataSource = almacen
DGVDatos.DataMember = "Paciente"
DGVDatos.Refresh()
DGVDatos.ReadOnly = True
End If
If RBTelefono.Checked = True Then
conexion.Open()
sql = "SELECT * FROM Paciente WHERE Telefono LIKE '%" & Likeit & "%' ORDER by
Telefono"
adaptar = New OleDbDataAdapter(sql, conexion)
conexion.Close()
almacen = New DataSet
adaptar.Fill(almacen, "Paciente")
DGVDatos.DataSource = almacen
DGVDatos.DataMember = "Paciente"
DGVDatos.Refresh()
DGVDatos.ReadOnly = True
End If
If RBCedula.Checked = True Then
conexion.Open()
sql = "SELECT * FROM Paciente WHERE Cedula LIKE '%" & Likeit & "%' ORDER by
Cedula"
adaptar = New OleDbDataAdapter(sql, conexion)
conexion.Close()
almacen = New DataSet
adaptar.Fill(almacen, "Paciente")
DGVDatos.DataSource = almacen
DGVDatos.DataMember = "Paciente"
DGVDatos.Refresh()
DGVDatos.ReadOnly = True
End If