Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Fred Prémel Fred Prémel is offline
external usenet poster
 
Posts: 1
Default problem with date

hello,
i'm fusionning excel into a word document
in excel, i have a field with dates
i've prgrammed Word to fill this field if there's somthing in the excel
case, or leave it empty if ther's nothing.
BUT : if the excel case is empty, Word puts the date of today !
What can I do
Thanks


  #2   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 problem with date

How have you programmed it?

The way to do it would be with an If...else...then field construction like

{ IF { MERGEFIELD DateField } "" "{ MERGEFIELD DateField \@ "MMMM d,
yyyy" }" "" }

You must use Ctrl+F9 to insert each pair of field delimiters { } and you use
Alt+F9 to toggle off their display.

--
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

"Fred Prémel" wrote in message
...
hello,
i'm fusionning excel into a word document
in excel, i have a field with dates
i've prgrammed Word to fill this field if there's somthing in the excel
case, or leave it empty if ther's nothing.
BUT : if the excel case is empty, Word puts the date of today !
What can I do
Thanks






  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default problem with date

Hmmm. I suspect that if the datefield is producing today's date rather than
nothing, then the field result is not equal to nothing and therefore
checking for a nul entry would not work - in such circumstances DDE
connection would be a plan?

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. 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.

--

Graham Mayor - Word MVP

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


Doug Robbins - Word MVP wrote:
How have you programmed it?

The way to do it would be with an If...else...then field construction
like
{ IF { MERGEFIELD DateField } "" "{ MERGEFIELD DateField \@ "MMMM
d, yyyy" }" "" }

You must use Ctrl+F9 to insert each pair of field delimiters { } and
you use Alt+F9 to toggle off their display.


"Fred Prémel" wrote in message
...
hello,
i'm fusionning excel into a word document
in excel, i have a field with dates
i've prgrammed Word to fill this field if there's somthing in the
excel case, or leave it empty if ther's nothing.
BUT : if the excel case is empty, Word puts the date of today !
What can I do
Thanks



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
Mailmerge Date problem Anthony Viscomi Mailmerge 1 March 29th 07 05:23 PM
Problem with date format Gavin Philpott Mailmerge 3 February 17th 07 12:14 AM
date problem in form ah Microsoft Word Help 5 July 19th 06 09:13 AM
Automatic Date Updating Problem Zoe Bluestar Microsoft Word Help 1 May 25th 06 12:05 AM
date mailmerge problem Bob Bedford Mailmerge 5 March 17th 06 08:57 AM


All times are GMT +1. The time now is 11:59 AM.

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"