If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Combining Documents - Locking Fields | Jezebel | General Discussion | 2 | July 31st, 2006 11:07 PM |
Combining Fields Within Query | FrankM | Running & Setting Up Queries | 3 | July 14th, 2006 05:04 PM |
Help!!! combining fields | Eddie | Using Forms | 9 | June 4th, 2006 03:51 AM |
combining two Name fields in a Query on a Report | Kyle | General Discussion | 11 | November 30th, 2005 04:35 PM |
Combining data from multiple fields into Pivot table | Os | Worksheet Functions | 5 | June 1st, 2004 05:04 PM |