IF ELSEIF in mailmerge - how do I

J

Jacqui

I am merging data into a document layout which needs a
headline each time the intake year changes. In XData for
the Mac I can say something like IF classof is not
previous classof classof (in other words if the data in
the field class off in this record is not the same as that
in the previous record insert the value found in this
record, otherwise ignore. Is there a way I can do this in
Word Mailmerge?
 
P

Peter Jamieson

You need to use fields along the following lines:

{ IF { MERGEREC } = 1 "{ SET previousyear "" }"
}{ IF { MERGEFIELD intakeyear } = { previousyear } ""
"Your headline text including any fields"
}{ SET previousyear { MERGEFIELD intakeyear } }
 

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