Truncar ComboBox
Publicado por Rubencb (3 intervenciones) el 21/07/2006 13:58:04
Hola, tengo una duda k m ha surgido, se lo agradeceria mucho al que m ayudase, ¿Como puedo truncar la lista de un combobox?, por ejemplo, hay 3 combobox:
Liga - Division - Equipo
y Tengo 3 tablas:
-tLigas
IDLiga
Nombre (LFP, Calcio, Premier League)
-tDivisiones (tabla relacion 1 a muchos entre cada Liga y sus Divisiones)
Liga (IDLiga)
Division (Primera, Segunda, Serie A, Serie B, ...)
-tEquipos (tabla relacion 1 a muchos entre cada Division y sus Equipos)
Division (IDDivision)
Equipo (MAdrid, Juventus, ...)
La duda es la siguiente:
-Como hacer para k el 2 combobox no muestre todos las Divisiones sino solamente las Divisiones k tengan el mismo valor de tDivisiones.Liga k tLigas.IDLiga?
Tambien se m ocurrio:
TAKE Division FROM tDivisiones WHERE tDivisiones.Liga = Liga.IDLiga
Pero nose donde se pone :(
Liga - Division - Equipo
y Tengo 3 tablas:
-tLigas
IDLiga
Nombre (LFP, Calcio, Premier League)
-tDivisiones (tabla relacion 1 a muchos entre cada Liga y sus Divisiones)
Liga (IDLiga)
Division (Primera, Segunda, Serie A, Serie B, ...)
-tEquipos (tabla relacion 1 a muchos entre cada Division y sus Equipos)
Division (IDDivision)
Equipo (MAdrid, Juventus, ...)
La duda es la siguiente:
-Como hacer para k el 2 combobox no muestre todos las Divisiones sino solamente las Divisiones k tengan el mismo valor de tDivisiones.Liga k tLigas.IDLiga?
Tambien se m ocurrio:
TAKE Division FROM tDivisiones WHERE tDivisiones.Liga = Liga.IDLiga
Pero nose donde se pone :(
Valora esta pregunta
0