Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / January 2006

Tip: Looking for answers? Try searching our database.

Using IF to give the value of a bookmark

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Art - 07 Jan 2006 04:34 GMT
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
Graham Mayor - 07 Jan 2006 08:27 GMT
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.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> 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.
[quoted text clipped - 5 lines]
>
> Art
Art - 07 Jan 2006 08:53 GMT
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.
Graham Mayor - 08 Jan 2006 08:11 GMT
You must insert all the field boundaries {} with CTRL+F9 and toggle the
display ALT+F9 to show results as opposed to construction.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Thank you for the reply.
>
[quoted text clipped - 9 lines]
>
> Need your help on this one.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.