Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / January 2006

Tip: Looking for answers? Try searching our database.

IF then with merged date field from excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Holly - 13 Jan 2006 06:27 GMT
I would like to use an IF statement for a merged field but cannot seem to get
it right.

I would like to say
IF DATE_OF_HIRE is < 1/1/05 then 01/01/2005 else use the data thats in the
DATE_OF_HIRE field

Help - I dont have much hair left :)
Graham Mayor - 13 Jan 2006 08:09 GMT
See http://www.gmayor.com/formatting_word_fields.htm

{IF {Mergefield Date_of_Hire \@ "yyyyMMdd"} < 20050101 "01/01/2005"
"{Mergefield Date_Of_Hire \@ "MM/dd/yyyy"}"}

Change the last mask if you are not using a US date pattern.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I would like to use an IF statement for a merged field but cannot
> seem to get it right.
[quoted text clipped - 4 lines]
>
> Help - I dont have much hair left :)
Holly - 14 Jan 2006 00:49 GMT
Thank You!

> See http://www.gmayor.com/formatting_word_fields.htm
>
[quoted text clipped - 11 lines]
> >
> > Help - I dont have much hair left :)
Graham Mayor - 14 Jan 2006 07:05 GMT
You are welcome.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Thank You!
>
[quoted text clipped - 21 lines]
>>>
>>> Help - I dont have much hair left :)

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.