Click to See Complete Forum and Search --> : Please Help
aburke
Aug 22nd, 2000, 02:55 PM
I have a bunch of numbers that are being inserted into an html file and I want to calculate the total and place it in a cell at the bottom of the table. How would I do this in VBScript or JavaScript???
Mark Sreeves
Aug 23rd, 2000, 06:59 AM
I have a bunch of numbers that are being inserted into an html file
How?
Please explain.
aburke
Aug 23rd, 2000, 07:36 AM
The numbers come to the page from an Oracle view using SQL statements.
Mark Sreeves
Aug 23rd, 2000, 08:00 AM
Are they numbers written directly to the page or are they in textboxes etc?
aburke
Aug 23rd, 2000, 08:03 AM
Directly to the page.
noone
Aug 23rd, 2000, 10:48 AM
At the same time that the numbers are being written can't you keep a running total?
asabi
Aug 28th, 2000, 12:05 PM
if you are using SQL, you can use the "sum" function in the SQL..
something like:
set rowcount 0 select sum(thenumbers) as theSum from table
this will return you a field that will hold the sum of the numbers, so practically you can have 2 SQL's one to grab the numbers, and another for the summing, or you can combine them in one SQL that will return you both.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.