A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If...Then... - combining fields



 
 
Thread Tools Display Modes
  #1  
Old July 31st, 2006, 09:20 PM posted to microsoft.public.word.mailmerge.fields
zSplash
external usenet poster
 
Posts: 10
Default 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  
Old August 1st, 2006, 04:27 AM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default 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  
Old August 1st, 2006, 06:57 PM posted to microsoft.public.word.mailmerge.fields
zSplash
external usenet poster
 
Posts: 10
Default 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  
Old August 19th, 2006, 03:52 PM posted to microsoft.public.word.mailmerge.fields
David Evans
external usenet poster
 
Posts: 2
Default 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  
Old August 19th, 2006, 04:44 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 04:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.