Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
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 | |
|
|
![]() |
||||
Thread | Forum | |||
How do I change the US date format to UK date format? | Microsoft Word Help | |||
Change date format for Comments and display date in balloons | Microsoft Word Help | |||
How do I change the date format to a long date after merging it | Mailmerge | |||
I am trying to format the date returned by a custom date property | Microsoft Word Help | |||
Date issue merging from Excel field in Date format to Word | Mailmerge |