?
Solved

Assign values to Hidden Field VBScript

Posted on 2007-12-04
3
Medium Priority
?
1,681 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

762 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