Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Max Max is offline
external usenet poster
 
Posts: 27
Default If statements and blank lines

Would like to have some If statements where if Value1=0, then Field1 does not
print and blank line is suppressed.

What I have now is {IF {MERGEFIELDValue1}=0 "Field1"} and this does not
seem to be working.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default If statements and blank lines

{ IF { MERGEFIELD Value1 } = 0 "{ MERGEFIELD Field2 }" "{ MERGEFIELD
Field1 }[Enter]
{ MERGEFIELD Field2 }" }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Max" wrote in message
...
Would like to have some If statements where if Value1=0, then Field1 does
not
print and blank line is suppressed.

What I have now is {IF {MERGEFIELDValue1}=0 "Field1"} and this does
not
seem to be working.

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Max Max is offline
external usenet poster
 
Posts: 27
Default If statements and blank lines

Doug,
That does help. How do I get the [Enter] into the expression - do I just
type it or is there somewhere I can select it from? Also, can I do TAB the
same way?
Thanks in advance.

"Doug Robbins - Word MVP" wrote:

{ IF { MERGEFIELD Value1 } = 0 "{ MERGEFIELD Field2 }" "{ MERGEFIELD
Field1 }[Enter]
{ MERGEFIELD Field2 }" }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Max" wrote in message
...
Would like to have some If statements where if Value1=0, then Field1 does
not
print and blank line is suppressed.

What I have now is {IF {MERGEFIELDValue1}=0 "Field1"} and this does
not
seem to be working.

Thanks in advance.




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default If statements and blank lines

Just use the respective keys on the key board for the [Enter] or a [Tab]

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Max" wrote in message
...
Doug,
That does help. How do I get the [Enter] into the expression - do I just
type it or is there somewhere I can select it from? Also, can I do TAB
the
same way?
Thanks in advance.

"Doug Robbins - Word MVP" wrote:

{ IF { MERGEFIELD Value1 } = 0 "{ MERGEFIELD Field2 }" "{ MERGEFIELD
Field1 }[Enter]
{ MERGEFIELD Field2 }" }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Max" wrote in message
...
Would like to have some If statements where if Value1=0, then Field1
does
not
print and blank line is suppressed.

What I have now is {IF {MERGEFIELDValue1}=0 "Field1"} and this does
not
seem to be working.

Thanks in advance.






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
mail merging formatted content donna Mailmerge 18 July 28th 06 06:20 PM
how to suppress a line having a nil or zero value in a merge file Martin Mailmerge 7 June 7th 06 05:09 PM
Supress blank lines Jan Mailmerge 5 March 6th 06 03:52 PM
Blank fields oe Mailmerge 10 December 2nd 05 03:05 PM
How can I write IF statements in Mail Merge Sayali Mailmerge 3 March 4th 05 08:31 AM


All times are GMT +1. The time now is 08:38 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"