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 / May 2008

Tip: Looking for answers? Try searching our database.

Why does time show up in date merge field instead of a blank?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jerez718 - 09 May 2008 21:09 GMT
I am creating a mail merge into Word 2003 with data from Excel 2003. Several
columns of data are date fields with several that are blank. When I complete
the merge, the records that have blank date fields show up in my merged
document as 12:00:00AM. How do I prevent this from happening?
Graham Mayor - 10 May 2008 06:22 GMT
You would need to trap the error with a conditional field e.g.

{IF {Mergefield DatefieldName} <> "12:00:00AM" "{Mergefield DatefieldName}"}

Make sure you enter the time *exactly* as it currently appears in your
merge, though
{IF {Mergefield DatefieldName} <> "12:00*" "{Mergefield DatefieldName}"}
should work.

Alternatively you could use the less reliable DDE method - From the Tools
menu in Word, select Options and then go to the General tab and check the
box against the "Confirm conversions at open" item.  (In Word 2007 it is
Office Button > Word Options > Advanced > General > Confirm file format
conversion on open). Then when you attach the data source to the mail merge
main document, you will be given the option of using the DDE method of
connection which should read the data as you have it formatted in the table.

Signature

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

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

> I am creating a mail merge into Word 2003 with data from Excel 2003.
> Several columns of data are date fields with several that are blank.
> When I complete the merge, the records that have blank date fields
> show up in my merged document as 12:00:00AM. How do I prevent this
> from happening?

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.