Merge Code does not recognize null or blank field

L

Lynda Kinley

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?
 
P

Peter Jamieson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top