Re: How can I toggle a Yes/No check box and display value in adjoining field ?

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



On Oct 25, 2:51 am, "Wolfgang Kais" <w.k...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Hello.

Mark wrote:
I have a test form with two fields. The first field is a Yes/No
checkbox. The second field is a text box that I want to display
"checked" if the checkbox is checked and "unchecked" if the
checkbox is not checked.

Now, if I check the checkbox the text box displays "checked".
However, if I uncheck the checkbox, "checked" remains in the
text box.

What have you done to make th word "checked" appear?

I want to the text box to toggle between "checked" and "unchecked"
when I check and uncheck the checkbox.

Let's assume that the checkbos is named chkMyCheckBox, then the
control source for the textbox should look like this:
=Iif([chkMyCheckBox],"checked","unchecked")

--
Regards,
Wolfgang

Wolfgang

You da man !!!

Thanks for your help. That's exactly what I wanted to know. Maybe I
didn't ask the question correctly
but you were able to hit the nail on the head. You don't know how
happy I am. I was banging my head
on the wall trying to figure it out. Maybe I'm not the brightest bulb
on the tree but thanks to you I am
able to forge ahead.

Thanks

Mark

.



Relevant Pages

  • Re: checkboxes and update query
    ... check / uncheck if they want a certain record to display in a gallery ... echo ''. ... What you need to do is give each checkbox a unique id - maybe something ...
    (comp.lang.php)
  • Re: oncheckedchanged event is not firing everytime on checkbox
    ... Twice checking/unchecking on the client without postback ... One checkbox is deselected ... check uncheck other pages. ... - change events fire ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: oncheckedchanged event is not firing everytime on checkbox
    ... Thanks for you indepth analysis of the problem and yes there is a postback ... checkbox to true, but now the question with us is how to solve the problem ... > check uncheck other pages. ... > - change events fire ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: using onchange to retrieve a checkbox value.
    ... I apologise if this i not what you would call a PHP problem. ... When a checkbox is checked or unchecked, ... When I check a box, everything works great, the database ... when I 'uncheck' the box. ...
    (comp.lang.php)
  • Re: calendar question?
    ... the day to see what daily tasks aren't complete yet and which ones are. ... The second method is to run an update query to uncheck the boxes. ... must be reset when the task is completed and checked. ... But I have a task table that has a checkbox column at the ...
    (microsoft.public.access.formscoding)