Access - Mostrar datos coincidentes

 
Vista:

Mostrar datos coincidentes

Publicado por Mario Hernan (25 intervenciones) el 01/10/2009 05:19:01
Hola amigos del Foro, yo tengo un campo texto el cual yo ingreso nombres y apellidos, mi pregunta es la siguente:
como hago que despues de hacer enter me salgan datos concidentes.
eje
si ingreso : Mario Rodrigues, me salga una ventana de opciones y me señale que hay datos coincidientes:
Mario Rodriguez
Marco Rodriguez
Maria Rodriguez etc... algo como el Google, que cuendo uno tipea un dato erroneo,
Seguro que con un combo box se podria tener en parte solucion, pero me gustaria tenerlo en un cuadro de texto
gracias de antemano
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Mostrar datos coincidentes

Publicado por QUIQUE (293 intervenciones) el 02/10/2009 00:31:22
TE CREAS UN BOTON EN EL ENCABEZADO DEL FORM Y EN EL EVENTO AL HACER CLICK O EN EL EVENTO AFTER UPDATE DEL CUADRO DE TEXTO ( ESTO ULTIMO SIN NECECIDAD DEL BOTON)
LE PONES EL SIGUIENTE CODIGO:

Me.RecordSource = "select * from tutabla where tucampo Like '*" & txt1 & "*'"

DONDE TUTABLA ES EL NOMBRE DE LA TABLA DE ORIGEN Y TUCAMPO EL CAMPO DONDE ESTAN LOS NOMBRES Y APELLIDOS. TXT1 SE REFIERE AL CUADRODE TEXTO QUE TENES EN EL FORM.
LOGICAMENTE EN LA PARTE DETALLE DEL FORMULARIO DEBEN ESTAR LOS CAMPOS QUE MOSTRARAN LOS DATOS SELECCIONADOS.
TAMBIEN DEBES TENER EN CUENTA QUE EL ORIGEN DEL FORM DEBE SER LA TABLA DONDE ESTAN LOS DATOS QUE BUSCAS.

HECHO ESTO CUANDO COLOQUES RODRIGUEZ APARECERAN TODOS LOS, COINCIDENTES NO IMPORTA EL NOMBRE O LOS APELLIDOS QUE TENGAN A CONTINUACION. ES MÁS SI PONES "RODRI" APARECERAN TODOS LOS RODRIGUEZ PERO TAMBIEN LOS "RODRIGO".

QUIQUE
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Mostrar datos coincidentes

Publicado por Mario Hernan (25 intervenciones) el 05/10/2009 04:55:25
Interseante tu solucion, gracias por tu tiempo
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar