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

Tip: Looking for answers? Try searching our database.

Merge Code does not recognize null or blank field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lynda Kinley - 19 Dec 2006 01:23 GMT
Hi:

I am dumbfounded by this problem.  I have a mail merge document that is
working with CSV data files.  I am inserting text if a field value is null
or blank.  I am using Word's IF-Then_Else code.  My test looks like this:

if {Mergefield ActivationCode}<>"" "Code Field Exists" "Code field is
blank".}

This always returns "true" even though there is nothing in the
ActivationCode field.  I have tried everything, but it will not work.  I
have tried > "", IS NOT BLANK, etc, but to no avail.

Any suggestions?
Peter Jamieson - 19 Dec 2006 01:42 GMT
Have you tried putting double quotes around { MERGEFIELD ActivationCode }
(and spaces around the "<>")?

e.g.

{ if "{ Mergefield ActivationCode }" <> "" "Code Field Exists" "Code field
is blank" }

Peter Jamieson

> Hi:
>
[quoted text clipped - 10 lines]
>
> Any suggestions?
 
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.