Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Joe Di Giulio Joe Di Giulio is offline
external usenet poster
 
Posts: 1
Default Problems with IF statement

Hello,

I am attempting to cater for a blank address2 in a mail merge. I have
written the following expression:

{ MERGEFIELD Title } { MERGEFIELD FristName } { MERGEFIELD LastName }
{ MERGEFIELD Addr1 }
{ IF { MERGEFIELD Addr2 } = "" "" "{ MERGEFIELD Addr2 }
" }{ MERGEFIELD City } { MERGEFIELD State } { MERGEFIELD Postcode }


The intention is to enter Addr2 and a carriage return if Addr2 is not blank.
I have two problems with this at the moment:
1. The carriage return is not working
2. If the text for Addr2 is "Level 21" only 21 is being displayed.

I have included the spaces in the IF statement as it appears in my doc. Can
someone point out where I have gone wrong? I am using Word 2003

Thanks in advance
 
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
which statement right , question is Choose the correct statement? how many template?when we click new doc Microsoft Word Help 1 October 16th 06 11:15 AM
which statement right , question isChoose the correct statement? how many template?when we click new doc Microsoft Word Help 1 October 15th 06 11:20 PM
If statement Mykas_Robi Mailmerge 3 August 26th 05 08:43 PM
If statement problems in mail merge jameseyryan Mailmerge 6 August 5th 05 09:29 PM
or statement JCSadie Mailmerge 1 April 25th 05 06:54 PM


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