If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Passing Count function value to a textbox

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-04, 00:31
notaprogrammer notaprogrammer is offline
Registered User
 
Join Date: Dec 2004
Posts: 4
Passing Count function value to a textbox

I am using the count function to get a count of a field in the database and I then want to pass the counted value to a text box. I am way over my head in the respect that I've never done this before and I need help!!! please!!!


My SQL Statement:

SQL = "Select count(FrequencyID) num1 FROM Pain_Chart_data"

Text Box:

<p>&nbsp&nbsp&nbsp&nbsp Numerator: <input type="text" size="8" value="<%=num1%>" name="Num1" /readonly></p>

Am I on the right path? Is it possible to pass the count value to a text box?

Any help would be appreciated. Thanks!
Reply With Quote
  #2 (permalink)  
Old 12-15-04, 09:16
rweide rweide is offline
Registered User
 
Join Date: Aug 2004
Location: USA
Posts: 54
not sure readonly can fit you purpose, you may use disabled instead. Other than that, a simple test can prove if it is working.
Reply With Quote
  #3 (permalink)  
Old 12-19-04, 19:58
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Your general approach looks right. Are you having a specific problem with it or what??
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On