Consultar texto por DataGrid
Publicado por Hendrick Araujo (2 intervenciones) el 17/10/2009 17:35:38
ESTE LO APLICO PARA BUSCAR NUMEROS...PERO EN TEXTO NO FUNCIONA....YA LE CAMBIE EL TRIM...POR LEN...QUE HAGO???
Private Sub txtYahoo_Change()
If Frame2.Caption = "FILTRO POR CEDULA" Then
If txtYahoo <> "" Then
adoCliente.Refresh
adoCliente.Recordset.Filter = "cedula=" & Trim(txtYahoo)
If Not adoCliente.Recordset.EOF Then
Txtcedula1.Text = adoCliente.Recordset!nombres & " " & adoCliente.Recordset!apellidos
Else
adoCliente.Refresh
Txtcedula1.Text = "No Existe Registro"
End If
End If
End If
End Sub
Private Sub txtYahoo_Change()
If Frame2.Caption = "FILTRO POR CEDULA" Then
If txtYahoo <> "" Then
adoCliente.Refresh
adoCliente.Recordset.Filter = "cedula=" & Trim(txtYahoo)
If Not adoCliente.Recordset.EOF Then
Txtcedula1.Text = adoCliente.Recordset!nombres & " " & adoCliente.Recordset!apellidos
Else
adoCliente.Refresh
Txtcedula1.Text = "No Existe Registro"
End If
End If
End If
End Sub
Valora esta pregunta


0