Cross-reference check boxes in on-line form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to cross-reference a check box to another check box?

In a protected on-line form, I have a series of summary check boxes. What I
would like is when the summary check box is ticked, this check is then
automatically carried over to the key result area check box.
 
Hi =?Utf-8?B?TUc=?=,
Is it possible to cross-reference a check box to another check box?

In a protected on-line form, I have a series of summary check boxes. What I
would like is when the summary check box is ticked, this check is then
automatically carried over to the key result area check box.
Unfortunately, no, there's no way to pick up the state of a checkbox except by
using VBA. You could use a VBA macro that triggers when the user exits a
checkbox to set the state of other, related fields. Example:

Sub SetCheckboxes()
ActiveDocument.FormFields("Check2").CheckBox.Value _
= ActiveDocument.FormFields("Check1").CheckBox.Value
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Hi Cindy

Thanks for the code. Is it possible to adjust the code so I can
cross-reference the result of one checkbox to two checkboxes rather than just
one as the code below allows?
 
Hi =?Utf-8?B?TUc=?=,
Is it possible to adjust the code so I can
cross-reference the result of one checkbox to two checkboxes rather than just
one as the code below allows?
Sure, just add an additional "equation" (copy and paste), referencing the other
checkbox name. You can substitute any checkbox names you like for those in my
sample.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Back
Top