FoxPro/Visual FoxPro - AYUDA CON FILTRO PORFAVR!!!!!!!!!!!

 
Vista:

AYUDA CON FILTRO PORFAVR!!!!!!!!!!!

Publicado por miguel (25 intervenciones) el 16/10/2008 23:19:43
HOLA EXPERTOS DEL FORO ACUDO A ESTE PORQUE SIEMPRE ME SALVARON DE APRIETOS , MIREN LA IDEA ES ESTA:

TENGO UN FORM CON 5 COMBOS Y UN GRID CON DATOS DE UNA VISTA , COMO PUEDO FILTRAR LOS DATOS DE ESTE GRID CON LOS VALORES QUE VAYA SELECCIONANADO DE LOS COMBOS , . TALVEZ LES SIRVA DECIR QUE LA GRILLA ES DE UNA SOLA TABLA EJMPLO:

5 COMBOS : RUTAS , CARGOS , TURNOS, A_CONTROL, A_TRABAJO
TABLA DEL GRID , FUNCIONARIO

DATOS EN EL GRID EJEMPLO:

MIGUEL BARREDOR(CARGO)
DANIEL SECRETARIO (CARGO)

SI SELECCIONO EN MI COMBO DE CARGOS BARREDOR QUE EN MI GRILLA ME APAREZCA SOLO MIGUEL????

LES AGRADECERIA SI ME AYUDAN , ES PARA TERMINAR UNA APLICACVION QUE LA A¡HAGO CON MUCHO CARIÑO YA QUE ES PARA MI PRIMER TRABAJO , 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:AYUDA CON FILTRO PORFAVR!!!!!!!!!!!

Publicado por jose camilo (805 intervenciones) el 17/10/2008 14:28:16
If !empty(cb1) And !empty(cb2) And !empty(cb3)
Set filter to cam1 = cb1 And cam2 = cb2 and Cam3 = Cb3
EndIf
If empty(cb1) And !empty(cb2) And !empty(cb3)
Set filter to cam2 = cb2 and Cam3 = Cb3
EndIf
If !empty(cb1) And empty(cb2) And !empty(cb3)
Set filter to cam1 = cb1 and Cam3 = Cb3
EndIf
If !empty(cb1) And !empty(cb2) And empty(cb3)
Set filter to cam1 = cb1 And cam2 = cb2
EndIf

Excetera hasta todas las combinaciones posibles
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:AYUDA CON FILTRO PORFAVR!!!!!!!!!!!

Publicado por DOUGLAS (297 intervenciones) el 17/10/2008 20:25:11
Te recomiendo utilizar instrucciones sql ya sea en los comos o en la grid. o en la grid u tmp con create cursor.


Saludes

Douglas
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:AYUDA CON FILTRO PORFAVR!!!!!!!!!!!

Publicado por DanielZambo (1 intervención) el 30/10/2008 13:18:54
Miguel;
¿Ya resolviste el problema?
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