crear cursor con criterio
Publicado por Ramon (81 intervenciones) el 28/09/2010 19:38:53
Hola buenas tardes... quisiera me ayudaran en algo...
tengo una tabla a la que se conectan diferentes unidades... pero quiero que muestre a cada Unidad Responsable sus datos...
Por ejemplo yo soy la unidad 13901... y quiero mostrar en un combo solo los datos agregados por esta UR.. Esta variable ya fue definida y adquirio su valor al iniciar el sistema... y es base para extraer solo lo de dicha UR..
lVehic="Select * from vehiculos where UR=?VarUr"
**** EL FILTRO DE ARRIBA SERA EFECTIVO PARA QUE SOLO SAQUE LOS DE ESTA UR
TRY
SQLEXEC(Con,lVehic,"vTmp")
CATCH
MESSAGEBOX("No se pudo Conectar")
QUIT
ENDTRY
with thisform
.Combo1.DisplayValue='Seleccione el Vehiculo'
.Combo1.RowSource="vTmp"
.Combo1.RowSourceType=6
EndWith
1000 TANKS
tengo una tabla a la que se conectan diferentes unidades... pero quiero que muestre a cada Unidad Responsable sus datos...
Por ejemplo yo soy la unidad 13901... y quiero mostrar en un combo solo los datos agregados por esta UR.. Esta variable ya fue definida y adquirio su valor al iniciar el sistema... y es base para extraer solo lo de dicha UR..
lVehic="Select * from vehiculos where UR=?VarUr"
**** EL FILTRO DE ARRIBA SERA EFECTIVO PARA QUE SOLO SAQUE LOS DE ESTA UR
TRY
SQLEXEC(Con,lVehic,"vTmp")
CATCH
MESSAGEBOX("No se pudo Conectar")
QUIT
ENDTRY
with thisform
.Combo1.DisplayValue='Seleccione el Vehiculo'
.Combo1.RowSource="vTmp"
.Combo1.RowSourceType=6
EndWith
1000 TANKS
Valora esta pregunta


0