|
-
Aug 22nd, 2000, 02:55 PM
#1
Thread Starter
Lively Member
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???
Using VB6 Still Pluging away
-
Aug 23rd, 2000, 06:59 AM
#2
Frenzied Member
I have a bunch of numbers that are being inserted into an html file
How?
Please explain.
-
Aug 23rd, 2000, 07:36 AM
#3
Thread Starter
Lively Member
The numbers come to the page from an Oracle view using SQL statements.
Using VB6 Still Pluging away
-
Aug 23rd, 2000, 08:00 AM
#4
Frenzied Member
Are they numbers written directly to the page or are they in textboxes etc?
-
Aug 23rd, 2000, 08:03 AM
#5
Thread Starter
Lively Member
Using VB6 Still Pluging away
-
Aug 23rd, 2000, 10:48 AM
#6
Hyperactive Member
At the same time that the numbers are being written can't you keep a running total?
"People who think they know everything are a great annoyance to those of us who do."
-
Aug 28th, 2000, 12:05 PM
#7
Hyperactive Member
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.
In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.
- Douglas Adams
The Hitchhiker's Guide to the Galaxy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|