Adding multiple checkbox values

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: ID10Terror (someone_at_somewhere.com)
Date: 11/02/04


Date: Mon, 1 Nov 2004 21:42:05 -0800

Hi:

I was wondering if it is possible to add the value of checkboxes.

<INPUT type=checkbox name=test01 CHECKED value=1>
<INPUT type=checkbox name=test01 CHECKED value=2>
<INPUT type=checkbox name=test01 CHECKED value=4>
<INPUT type=checkbox name=test01 CHECKED value=8>

If the user clicked the second (value=2) and third (value=4) check boxes,
when the submit button is clicked, the sum of all "test01" boxes is sent.
In this example, test01=6 would be sent. Is this possible or do I have to
use javascript or something else. I need to avoid the test01=2, 4 I am
currently getting.

Any and all help would greatly be appreciated.

Thanks



Relevant Pages

  • Re: Different data shown based on user input
    ... my advice changes with the info that there are over 200 checkboxes. ... I suggest you use combo boxes. ... Dim strStub As String ...
    (microsoft.public.access.queries)
  • Re: Different data shown based on user input
    ... A form that knows which check boxes have been checked can be created like ... --check only one check box and observe that the other checkboxes are ... The basic process is to build the query using the fields that have been ... Dim strStub as String ...
    (microsoft.public.access.queries)
  • Re: Checkbox cannot be used on 2003 document
    ... If the check boxes are from the legacy controls (which they will be if the ... can insert and remove checks from the checkboxes in that document. ... I could not find teh checkbox tool in teh 2007 native ...
    (microsoft.public.word.docmanagement)
  • Re: Multiple Checkboxes in Search by Form
    ... from checkboxes to a multi-select list box can I also make that change in my ... > build up the WhereCondition string to open a report, ... If none of the boxes are checked, ... > Dim strWhere As String ...
    (microsoft.public.access.queries)
  • Re: Allowing only 1 check box to be ticked
    ... check boxes, but I really don't think I get a choice in the matter. ... for each cbx in activecell.entirerow.checkboxes ... But you can cycle through all the checkboxes and look at the position of each ... I tried to edit your macro but didn't have any luck. ...
    (microsoft.public.excel.misc)