Reply
 
Thread Tools Display Modes
  #1   Report Post  
Olivier Camy
 
Posts: n/a
Default Using control values within IF field

Hello,

I'm using Word2003 and I would like to use the result from a check box (i.e.
True or False) in an IF field/function, but don't know how to.
I've gone as far as typing the following, which doesn't work:
IF (Checkbox(Customer).value=true,YES,NO)
I would also like the field to update automatically when the check box value
changes.
Any suggestions would be greatly appreciated !

thanks in advance
  #2   Report Post  
Greg
 
Posts: n/a
Default

Olivier,

I think your only option is an on exit macro to evaluate the checkbox
state. You and then set the value of another formfield or set a
docVariable to use in an IF field. Here is a bit of code to get you
started:
Sub EvaluateCB()
With ActiveDocument
If .FormFields("Check1").Result = True Then
.FormFields("Text1").Result = "Yes"
Else
.FormFields("Text1").Result = "No"
End If
End With
End Sub

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter data in 1 text form field & have multiple locations fill Lee Microsoft Word Help 1 March 16th 05 10:56 PM
Field, and formatting gandalf Page Layout 1 February 18th 05 09:13 AM
Home Phone field not getting picked up in Merge Cathleen McGuire Mailmerge 4 January 7th 05 03:13 AM
How do I use the PRINT field code to ... Dave Microsoft Word Help 3 December 13th 04 03:06 PM
Text Form Field Ref in Footer Won't Update on Screen StarWine Microsoft Word Help 3 December 6th 04 06:17 PM


All times are GMT +1. The time now is 07:03 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"