Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Art
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Art
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default 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

Posting Rules

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking to a bookmark Betina Andersen Microsoft Word Help 0 October 24th 05 09:45 AM
How review properties of existing block of text that is a bookmark MRolko Microsoft Word Help 3 October 20th 05 02:44 PM
Bookmark Question Rob Hargreaves New Users 1 August 7th 05 07:21 AM
Hyperlink from Word to Excel bookmark rawahoho Microsoft Word Help 2 February 22nd 05 11:29 PM
Loss of Bookmark After Re-opening File Nick Curl Microsoft Word Help 4 January 4th 05 09:18 PM


All times are GMT +1. The time now is 03:36 AM.

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"