Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
manatee08 manatee08 is offline
external usenet poster
 
Posts: 3
Default IF . . . THEN . . . ELSE FORMAT DATE

I am trying to compare fields in a database and if NationalFilingDate is
blank, I want the field to show "ApplicationDate" instead. However,
whichever date is chosen for the field, I want the date to format as MMMM dd,
yyyy. The code is shown below. Can someone tell me what I am doing wrong?
Thanks.

{ IF { MERGEFIELD NationalFilingDate} = " " " {MERGEFIELD
NationalFilingDate" } " " {MERGEFIELD "ApplicationDate" /@ "MMMM dd, yyyy"} }
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
dshaulis dshaulis is offline
external usenet poster
 
Posts: 4
Default IF . . . THEN . . . ELSE FORMAT DATE

I believe you / should be the other way \ . It should be \@ "MMMM d, yyyy"

Hope that helps.

"manatee08" wrote:

I am trying to compare fields in a database and if NationalFilingDate is
blank, I want the field to show "ApplicationDate" instead. However,
whichever date is chosen for the field, I want the date to format as MMMM dd,
yyyy. The code is shown below. Can someone tell me what I am doing wrong?
Thanks.

{ IF { MERGEFIELD NationalFilingDate} = " " " {MERGEFIELD
NationalFilingDate" } " " {MERGEFIELD "ApplicationDate" /@ "MMMM dd, yyyy"} }

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default IF . . . THEN . . . ELSE FORMAT DATE

And you need the switch on both mergefields. Also a blank field is probably
"" not " "

--
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, originally posted via msnews.microsoft.com

"dshaulis" wrote in message
...
I believe you / should be the other way \ . It should be \@ "MMMM d,
yyyy"

Hope that helps.

"manatee08" wrote:

I am trying to compare fields in a database and if NationalFilingDate is
blank, I want the field to show "ApplicationDate" instead. However,
whichever date is chosen for the field, I want the date to format as MMMM
dd,
yyyy. The code is shown below. Can someone tell me what I am doing
wrong?
Thanks.

{ IF { MERGEFIELD NationalFilingDate} = " " " {MERGEFIELD
NationalFilingDate" } " " {MERGEFIELD "ApplicationDate" /@ "MMMM dd,
yyyy"} }


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the US date format to UK date format? Bregelad Microsoft Word Help 1 November 11th 09 08:36 PM
Change date format for Comments and display date in balloons Melissa Microsoft Word Help 13 January 30th 06 04:21 PM
How do I change the date format to a long date after merging it Marisa Mailmerge 2 October 31st 05 03:15 PM
I am trying to format the date returned by a custom date property Simon B Microsoft Word Help 2 August 13th 05 11:05 AM
Date issue merging from Excel field in Date format to Word Barb Reinhardt Mailmerge 1 December 17th 04 07:34 AM


All times are GMT +1. The time now is 06:05 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"