Solved

Assign values to Hidden Field VBScript

Posted on 2007-12-04
3
1,656 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 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

Industry Leaders: 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

Suggested Solutions

I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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