Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Using IF to give the value of a bookmark
How do you use the IF field code to display the value of a bookmark and
blank if the value of the bookmarked field is 1. I was using the code { IF { RemainMonthPayment} =1, " ", {LastPayment}} but all I get is an error. Please help. Thanks. Art |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Using IF to give the value of a bookmark
Is this a mail merge? Are these merge fields? If they are then
{IF {Mergefield RemainMonthPayment} 1 "{Mergefield Last Payment}"} If they are both bookmarks eg from a form then {IF {RemainMonthPayment} 1 "{Last Payment}"} will do the trick. In your example, you don't need the commas and you do need a space after the = In a form you will need to set the properties of the relevant fields to calculate on exit. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Art wrote: How do you use the IF field code to display the value of a bookmark and blank if the value of the bookmarked field is 1. I was using the code { IF { RemainMonthPayment} =1, " ", {LastPayment}} but all I get is an error. Please help. Thanks. Art |
#3
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Using IF to give the value of a bookmark
Thank you for the reply.
By the way, the form does not use merge fields. I tried using the second code you mentioned in my Word document {IF {RemainMonthPayment} 1 "{Last Payment}"} but when I update the field it gives the result {Last Payment} Both RemainMonthPayment (integer) and Last Payment (date) are bookmarks from the form. Need your help on this one. |
#4
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Using IF to give the value of a bookmark
You must insert all the field boundaries {} with CTRL+F9 and toggle the
display ALT+F9 to show results as opposed to construction. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Art wrote: Thank you for the reply. By the way, the form does not use merge fields. I tried using the second code you mentioned in my Word document {IF {RemainMonthPayment} 1 "{Last Payment}"} but when I update the field it gives the result {Last Payment} Both RemainMonthPayment (integer) and Last Payment (date) are bookmarks from the form. Need your help on this one. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Linking to a bookmark | Microsoft Word Help | |||
How review properties of existing block of text that is a bookmark | Microsoft Word Help | |||
Bookmark Question | New Users | |||
Hyperlink from Word to Excel bookmark | Microsoft Word Help | |||
Loss of Bookmark After Re-opening File | Microsoft Word Help |