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 / November 2006

Tip: Looking for answers? Try searching our database.

mail merging date fields from excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pama - 20 Nov 2006 16:56 GMT
Hello everyone,
I have the same problem as the post on 12/8/05 "Data fields in mail merge",
so I will use their elequent words...
"I have a Word mail merge document, used to import Excel data - only dates.
When I have merged the data, all empty Excel date cells are populated in Word
by 12:00AM."
I then tried the fix for it.....
Use

{ IF { MERGEFIELD contract_received } <> "" { MERGEFIELD contract_received
\@"DD/MM/YYYY" } "" }

But this did not work.
Any suggestions?
Doug Robbins - Word MVP - 20 Nov 2006 18:04 GMT
What was the result?

Did you use Ctrl+F9 to insert each pair of field delimiters {}?

The formatting switch should be  \@ "dd/MM/yyyy"

You may be able to fix the problem by selecting Options from the Tools menu
in Word and then go to the General tab and check the box against "Confirm
conversions at open"  Then, when you attach the data source to the mail
merge main document, use the DDE option.

Alternatively, use the following field construction:

{ IF { MERGEFIELD contract_received } "12:00AM" { MERGEFIELD
contract_received
\@ "dd/MM/yyyy" } "" }

I am not sure that 12:00AM is exactly what is now being displayed when the
field is empty, so you should replace that what is actually being displayed.

Signature

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

> Hello everyone,
> I have the same problem as the post on 12/8/05 "Data fields in mail
[quoted text clipped - 13 lines]
> But this did not work.
> Any suggestions?
pama - 21 Nov 2006 13:54 GMT
Thanks for your help Doug and Graham.
There are several potential "go arounds" like the IF statement:
{ IF { MERGEFIELD contract_received } <> "12:00" { MERGEFIELD
contract_received \@ "dd/MM/yyyy" }""}

which did finally work.

The problem with the original if statement:
{ IF { MERGEFIELD contract_received } <> "" { MERGEFIELD contract_received
\@"DD/MM/YYYY" } "" }

is that Word does not see that field as blank, so it will always format
"something" as a date, such as the current date. But putting <>12:00 (even
without all the formatting such as 12:00:00 AM) worked. Still, that is going
around the problem.

What fixed the problem entirely was merging with the DDE option. This makes
Word behave as you would expect in this case. Thank you again.
Pascale.

> What was the result?
>
[quoted text clipped - 33 lines]
> > But this did not work.
> > Any suggestions?
Graham Mayor - 21 Nov 2006 14:55 GMT
Only problem is that while DDE often works, it is not reliable, which is one
reason why Microsoft moved away from it. The conditional field always works.

Signature

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

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

> Thanks for your help Doug and Graham.
> There are several potential "go arounds" like the IF statement:
[quoted text clipped - 62 lines]
>>> But this did not work.
>>> Any suggestions?
pama - 21 Nov 2006 16:35 GMT
OK, how would DDE be unreliable? If you don't mind giving a brief explantion.

> Only problem is that while DDE often works, it is not reliable, which is one
> reason why Microsoft moved away from it. The conditional field always works.
[quoted text clipped - 65 lines]
> >>> But this did not work.
> >>> Any suggestions?
Graham Mayor - 21 Nov 2006 05:05 GMT
The problem is that the fields are not empty - they are reproducing
12:00AM - so you need to modify the condition to search for that

{ IF { MERGEFIELD contract_received } <> "12:00*" "{ MERGEFIELD
contract_received \@ "dd/MM/yyyy" }" }
should do the trick - or put *exactly* what the 'empty' fields produce in
place of 12:00* above.

Signature

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

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

> Hello everyone,
> I have the same problem as the post on 12/8/05 "Data fields in mail
[quoted text clipped - 10 lines]
> But this did not work.
> Any suggestions?
 
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.