Problem with a mail merge document

G

GOU

Hi,

I try to imbricate conditions in a Mail Merge document.
When I write
«{IF {MERGEFIELD Field_1} = True "OK" "{IF {MERGEFIELD
Field_2} = True "OK" "ABORT" }" }»
I have no problem.

And when I write
«{IF {MERGEFIELD Field_1} = True "OK" "Field 2 is {IF
{MERGEFIELD Field_2} = True "OK" "ABORT" }" }»
the Word document can close itself but it's impossible for
me to reopen it.

I find it strange, I tought it used to work ???
Could it be a virus even if I found none with VShield ?
Could it be a problem with my Normal.dot ?

I use Office 97 on a Windows NT OS.

Thanks.
 
P

Peter Jamieson

I don't know why you are getting a crash but in any case, AFAIK there are no
circumstances in which the comparison

{ MERGEFIELD Field_1 } = True

will work as you intended, except possibly by chance.

You probably need either

{ MERGEFIELD Field_1 } = 0

or

{ MERGEFIELD Field_1 } = "True"

(and perhaps you would need to switch the true/false result texts around)

depending on what values

{ MERGEFIELD Field_1 }

actually displays on its own.

--
Peter Jamieson - Word MVP
Word MVP web site http://word.mvps.org/

Hi,

I try to imbricate conditions in a Mail Merge document.
When I write
«{IF {MERGEFIELD Field_1} = True "OK" "{IF {MERGEFIELD
Field_2} = True "OK" "ABORT" }" }»
I have no problem.

And when I write
«{IF {MERGEFIELD Field_1} = True "OK" "Field 2 is {IF
{MERGEFIELD Field_2} = True "OK" "ABORT" }" }»
the Word document can close itself but it's impossible for
me to reopen it.

I find it strange, I tought it used to work ???
Could it be a virus even if I found none with VShield ?
Could it be a problem with my Normal.dot ?

I use Office 97 on a Windows NT OS.

Thanks.
 

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