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 / November 2006

Tip: Looking for answers? Try searching our database.

Mergefield suppress if data field blank

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JB reluctantly from WP - 16 Nov 2006 20:19 GMT
Hello,

I have an Excel database file, and am merging into a Word document.  I am
familiar with Word's merge process.  However, I have a field in the database
called RADIO that is a 3-digit number, or the field may be blank.  The Word
document displays the blank fields as a zero.  I want them to be blank.  I
have read previous posts about using switches within my mergefield, and they
kind of make sense, but none seem to be the right fix for my particular need.

Currently displayed in Word document:  {Mergefield "Radio"}
I need this to only display text if not blank in database.

Any assistance is greatly appreciated!

Julie ~ reluctantly switching from WordPerfect to Word (sheesh!)
Cindy B - 16 Nov 2006 21:17 GMT
I’ve seen a lot of inconsistencies with newer versions of word as well.  I
would suggest creating an If Then Else statement to control the field.  “If
mergefield is not blank then insert otherwise do nothing”

Good luck.
macropod - 16 Nov 2006 21:30 GMT
Hi JB,

You can fix this by adding a numeric picture switch to the field. To do
this:
. select your mergefield and press Shift-F9 to expose the code. It should
look something like:
{MERGEFIELD ExcelData}
where 'ExcelData' is you field name
. delete anything after 'ExcelData' and add '\# 0;;') to the field so that
you've got:
'{MERGEFIELD ExcelData \# 0;;}'
. press F9 to update the field
. run your mailmerge

Cheers

Signature

macropod
[MVP - Microsoft Word]

> Hello,
>
[quoted text clipped - 11 lines]
>
> Julie ~ reluctantly switching from WordPerfect to Word (sheesh!)
JB reluctantly from WP - 16 Nov 2006 22:03 GMT
Macropod,

Thank you so much!  I knew I didn't have to make long complicated IF, THEN,
ELSE statements to get the result I wanted!  I really appreciate your help.

~Julie

> Hi JB,
>
[quoted text clipped - 31 lines]
> >
> > Julie ~ reluctantly switching from WordPerfect to Word (sheesh!)
 
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.