Word 2003 If field

  • Thread starter David Schnelbaker
  • Start date
D

David Schnelbaker

Is it possible to use the current condition of a checkbox as Expression1 in
an IF statement in Word 2003?

I am trying to create a Word form template that displays different text
depending on whether or not a specific checkbox is checked or not. Here is
an example of a statement that I am trying to use,

{If CheckBox1 = TRUE, "True statement" "False statement" }

But the result seems to give back the true statement regardless of the
condition of the CheckBox. Any help would be appreciated
 
J

Jay Freedman

On Wed, 8 Apr 2009 17:54:01 -0700, David Schnelbaker <David
Is it possible to use the current condition of a checkbox as Expression1 in
an IF statement in Word 2003?

I am trying to create a Word form template that displays different text
depending on whether or not a specific checkbox is checked or not. Here is
an example of a statement that I am trying to use,

{If CheckBox1 = TRUE, "True statement" "False statement" }

But the result seems to give back the true statement regardless of the
condition of the CheckBox. Any help would be appreciated

See http://www.pcreview.co.uk/forums/thread-3708074.php.
 
D

David Schnelbaker

Thanks Jay! I will give the dropdown checkbox a try. I'm assuming that you
use the checkmark character as the value of Expression2 ?
 
J

Jay Freedman

This is a bit more complicated than it looks. :)

First insert the dropdown form field and open its Properties dialog. For the
empty box, hold down the Alt key while typing 0168 on the number pad (with
NumLock turned on). That will insert an umlaut in the box; click the Add button.
Then, for the checked box, hold down the Alt key while typing 0254 on the number
pad. That will insert a thorn (þ); click Add again. Check the box for "Calculate
on exit" and click OK.

Format the dropdown with Wingdings font. You should see the empty box.

Now, create the field that will change text as the dropdown changes. The field
code should look like this (be very careful about where the field markers are,
and don't put in any comma):

{If {Dropdown1} = þ "True statement" "False statement"}

To make the inner set of field markers, select the word Dropdown1 and press
Ctrl+F9.
 
D

David Schnelbaker

Thankyou Jay, works like a charm! As you say nothing is ever as
straightforward as it seems. I thought I might have to use the ASCII. One
last question. Is there any way to get the characters in the dropdown list
itself to display as wingding characters?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top