Solved

Assign values to Hidden Field VBScript

Posted on 2007-12-04
3
1,613 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
Comment Utility
What is the problem?

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

0
 

Author Comment

by:JonCardona
Comment Utility
Yeah i'm not thinkin today. Thanks.
0
 

Expert Comment

by:rkdixon
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now