If...Then... - combining fields

Z

zSplash

I want to do a If-Then-Else statement in mailmerge such that if a condition
is true, 3 mailmerge fields are added to the document; otherwise, a
text-field (or, a single field) is added. I have tried &( )+ between the 3
fields (to "connect" them). Is there anyway to do it? (I keep getting the
second of the 3 I want to combine and add as the "else" part, which makes
sense...).

{IF {MAILMERGE evnttype = "OTSC" {MAILMERGE "date"} {MAILMERGE "time"}
{MAILMERGE "room"} "unscheduled" } }

TIA

st.
 
D

Doug Robbins - Word MVP

{IF {MAILMERGE evnttype} = "OTSC" "{MAILMERGE "date"} {MAILMERGE "time"}
{MAILMERGE "room"}" "unscheduled" } }


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
P

Peter Jamieson

Yes, Doug Robbins replied with

{IF {MAILMERGE evnttype} = "OTSC" "{MAILMERGE "date"} {MAILMERGE "time"}
{MAILMERGE "room"}" "unscheduled" } }

(all the {} need to be the special field braces you can enter using
ctrl-F9).

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