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

 
Vista:

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

Publicado por miguel (25 intervenciones) el 16/10/2008 23:14:31
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 00:23:52
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 miguel (25 intervenciones) el 17/10/2008 15:42:33
ok , gracias creo que filtra solo me faltaria ver en el grid el resultado porfa si me ayudas y perdon por las molestias
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