FoxPro/Visual FoxPro - PROBLEMAS CON UN COMBOX URGENTE

 
Vista:

PROBLEMAS CON UN COMBOX URGENTE

Publicado por JAMES (50 intervenciones) el 17/10/2001 03:27:02
TENGO DOS LISTAS DESPLEGABLES UNA QUE MUESTRA DIFERENTES HORARIOS "7:30-9:00","9:00-10:30",10:30-12:00" ETC, Y TENGO OTRA LISTA QUE MUESTRA LOS DIAS DE ESOS HORARIOS "LUNES A VIERNES", "SABADOS", "DOMINGOS", ETC.
LOS HORARIOS COINCIDEN CON ALGUN DIA "7:30-9:00 CON LUNES A VIERNES" "8:00-13:00 CON SABADOS" ETC, LAS DOS LISTAS ESTAN LIGADAS A CADA UNO DE LOS CAMPOS Y MUESTRAN LOS DATOS COMPLETOS PERO LO QUE QUIERO ES QUE CUANDO SELECCIONE UN HORARIO ME MUESTRE EN LA OTRA LISTA LOS DIAS DE ESE HORARIO POR QUE CUANDO DESPLEGO LA LISTA DE DIAS ME MUESTRA DIAS REPETIDOS ES DECIR APARECE VARIAS VECES "LUNES A VIERNES" "SABADOS" "DOMINGOS" Y LO QUE QUIERO ES QUE MUESTRE PUROS DIAS NO REPETIDOS.

GRACIAS
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:PROBLEMAS CON UN COMBOX URGENTE

Publicado por Jose Rolando (325 intervenciones) el 17/10/2001 15:58:45
Hola
Lo que debes hacer es implementar en la lista la funcion SQL, es decir selecciona la opción 3. Por ej. en ControlSource="Mitabla.Dias_Id"
y en RowSource="Select Nombre_Dias,Dias_Id FROM Mitabla ORDER BY Nombre_Dias INTO CURSOR cDias
En el campo de horarios debe pertenecer a la tabla de horarios y estar relacionada con un campo clave con la tabla de los dias, suponiendo que se encuantren en tablas diferentes.
Si no puedes solucionarlo escribeme y te envio un ejemplo, ok?

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