Ver Mensaje Individual
  #10 (permalink)  
Antiguo 23/08/2007, 01:08
Essftg
 
Fecha de Ingreso: septiembre-2004
Mensajes: 76
Antigüedad: 20 años, 7 meses
Puntos: 0
Re: Problemas Al Sumar Con Valores Null

Efectivamente es eso lo q quiero hacer, que no me sume los valores null.

Os pongo mi consulta de SQL

sqlText = "select productos.productID, productos.catalogName, productos.referncia, productos.color01, productos.txttalla01, productos.txttalla01a, productos.txttalla01b, productos.color02, productos.txttalla02, productos.txttalla02a, productos.txttalla02b, productos.color03, productos.txttalla03, productos.txttalla03a, productos.txttalla03b, productos.color04, productos.txttalla04, productos.txttalla04a, productos.txttalla04b, " _
& "precio, quantity, quantity2, quantity3, quantity4, quantity5, quantity6, quantity7 from productos, " _
& "detalle_pedido where " _
& "productos.productID = detalle_pedido.ProductID "_
& "and detalle_pedido.orderID = " & intOrderID

intProdPrice = rsReview("precio")
intQuant = rsReview("quantity")
intQuant2 = rsReview("quantity2")
intQuant3 = rsReview("quantity3")
intQuant4 = rsReview("quantity4")
intQuant5 = rsReview("quantity5")
intQuant6 = rsReview("quantity6")
intQuant7 = rsReview("quantity7")

intTotal =intTotal + (intQuant * intProdPrice)+ (intQuant2 * intProdPrice)+ (intQuant3 * intProdPrice)+ (intQuant4 * intProdPrice)+ (intQuant5 * intProdPrice)+ (intQuant6 * intProdPrice) + (intQuant7 * intProdPrice)

LO Q NECESITO QUE ME HAGA ES EL SUMAR TODO INTTOTAL
<td><div align="center" class="Estilo18"><strong><%= formatNumber(INTTOTAL,2) %> &euro; </strong></div></td>
NO SE COMO HACERLO SI ALGUIEN ME PUEDE AYUDAR GRACIAS