Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2004

    Unanswered: 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!

  2. #2
    Join Date
    Aug 2004
    not sure readonly can fit you purpose, you may use disabled instead. Other than that, a simple test can prove if it is working.

  3. #3
    Join Date
    Nov 2003
    Christchurch, New Zealand
    Your general approach looks right. Are you having a specific problem with it or what??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts