Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/12/2003, 14:55
Avatar de univercity
univercity
 
Fecha de Ingreso: noviembre-2002
Mensajes: 681
Antigüedad: 22 años, 6 meses
Puntos: 0
<%

Total = 0

Do While Not rst.EOF

cantidad = clng(rst("cantidad"))
Precio =clng(rst("precio"))
F = cantidad * precio
G = clng(f)
total = total + G
total2 = formatnumber(total)

rst.MoveNext
Loop

%>

'para mostrar tu total... que para este caso te lo he dejado formateado en total2

<%= total2%>


Slds.
__________________
"Lo importante es nunca dejar de hacerse preguntas"
Albert Einstein