Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/03/2011, 01:52
Avatar de Joch_pa
Joch_pa
 
Fecha de Ingreso: octubre-2009
Ubicación: Pachuca De Soto, Hidalgo, Mexico, Mexico
Mensajes: 122
Antigüedad: 14 años, 6 meses
Puntos: 7
Respuesta: Condicional con dos variables

yo lo dejaria de la siguiente forma:

Código ASP:
Ver original
  1. set registros = conexion.execute("SELECT * FROM stock_elem where codcla ="& codcla & " and coditem =" & coditem &"")
  2.  
  3. if not registros.eof then
  4.      canR = registros("cant")
  5.      if isnull(canR) then canR = 0
  6.      if cDbl(canR) < cDbl(canti) then response.write "canR = " & canR & "<br>canti="  & canti
  7. else
  8.      respose.write "No existe producto en el stock"
  9. end if