Solved

Assign values to Hidden Field VBScript

Posted on 2007-12-04
3
1,643 Views
Last Modified: 2012-05-05
I have a while loop that I want to include this bit of code within.

I'm basically trying to sum a database field into a hidden field and display it on the screen in a table cell.

While blah blah blah
Hidden field = Hidden field + Database Field
Wend

< td > display hidden field < / td >
0
Comment
Question by:JonCardona
3 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 125 total points
ID: 20404138
What is the problem?

Why not make the sum  in SQL?
SELECT SUM(fieldname) AS totalsum FROM tablename

0
 

Author Comment

by:JonCardona
ID: 20405807
Yeah i'm not thinkin today. Thanks.
0
 

Expert Comment

by:rkdixon
ID: 33432167
Seriously??? you should consider revising the title of this thread.  Reason:
I am searching for vbscript solutions... and this isn't really a vbscript solution, its a work around to a specific problem, which is resolved in SQL... which really wastes a lot of time for those of us who are seeking vbscript code....  The only thing this has to do with setting values in a hidden field using vbscript is that the person asking the question originally wanted to use vbscript... and ended up using SQL instead.  Unfortunately SQL won't resolve all of the problems in the world that have to do with setting hidden fields using VBScript.
Thanks.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question