Ver Mensaje Individual
  #8 (permalink)  
Antiguo 04/03/2005, 11:37
Avatar de sjam7
sjam7
 
Fecha de Ingreso: diciembre-2001
Ubicación: Guadalajara, Mexico
Mensajes: 3.672
Antigüedad: 23 años, 4 meses
Puntos: 16
segun yo lo he solucionado asi:

Código:
if total=>0 and total=< rs("gasto1") then
gastos=rs("precio1")
elseif total>rs("gasto1")+.01 and total=< rs("gasto2") then 
gastos=rs("precio2")
elseif total>rs("gasto2")+.01 and total=< rs("gasto3") then 
gastos=rs("precio3")
elseif total>rs("gasto3")+.01 and total=< rs("gasto4") then 
gastos=rs("precio4")
elseif total>rs("gasto4")+.01 and total=< rs("gasto5") then 
gastos=rs("precio5")
elseif total>rs("gasto5")+.01 then
gastos=rs("precio6")
else
gastos=0
end if
hasta ahora no ha fallado, alguno le ve alguna falla de logica?

de cualquier forma lo voy a seguir probando a ver si bota algo