Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
If...Then... - combining fields
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. |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
If...Then... - combining fields
{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 "zSplash" wrote in message ... 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. |
#3
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
If...Then... - combining fields
Works fine. Thanks, Doug. (So simple I'm kicking myself....)
st. "Doug Robbins - Word MVP" wrote in message ... {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 "zSplash" wrote in message ... 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. |
#4
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
If...Then... - combining fields
Did anyone ever respond to this? I have the same issue...
"zSplash" wrote in message ... 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. |
#5
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
If...Then... - combining fields
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 "David Evans" wrote in message ... Did anyone ever respond to this? I have the same issue... "zSplash" wrote in message ... 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. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Combining Documents - Locking Fields | Microsoft Word Help | |||
Use of fields in templates | Microsoft Word Help | |||
mail merge and text form fields | Mailmerge | |||
Mailmerge vs. form fields | Mailmerge | |||
Word crashing upon re-use of a template | Microsoft Word Help |