Assign values to Hidden Field VBScript

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 >
JonCardonaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
sybeConnect With a Mentor Commented:
What is the problem?

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

0
 
JonCardonaAuthor Commented:
Yeah i'm not thinkin today. Thanks.
0
 
rkdixonCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.