CheckBox related question. 
Author Message
 CheckBox related question.

Please help me to solve this problem.

I am displaying a list of Check boxes on a page based on the data in my
database. User can check as many boxes they want. And at the end of the data
entry when user click save button I want to check the total number of boxes
user checked. The following code will give you idea what I am taking about.


  if oICD9.EOF then
   response.write "No Diagnosis Found"
   i = 0
   Do While Not oICD9.EOF
    i = i + 1
    Lcheckbox = " "
    Lcheckvalue = " "

    Lcheckbox = "C"  & i
    Lcheckvalue = Trim(oICD9.Fields("code").value) & "~" &
          <td width="25" height="14"><input type="checkbox"
          <td width="56"
          <td width="362"
   Session("STotalDiagnosis") = i
  end if


I want to do some thing like this at the time of button press ....

Sub btnSave_OnClick()
 For i  = 1 to Counter
 if "Form1.C" & i & ".checked" = true then
    Ltimes = LTimes + 1
 end if

Unfortunately it is not working. I will really appreciate for any help to
solve this problem.

Naeem Malik

Mon, 03 Sep 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. HELP: Another IFRAME-related question

2. Two questions related to printing

3. Two form related vbscript questions

4. Class-related questions!

5. couple of ADSI-related questions

6. Question for Dino Espositio - console-related programming

7. regsrv32 question (related to scripting)

8. Date related or not date related

9. Appending related records to two related tables

10. A few quick question (rst related)

11. API related question

12. New to Word VBA: automating a template (multiple related questions)


Powered by phpBB® Forum Software