A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Field - Switch to Suppress



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2009, 12:00 PM posted to microsoft.public.word.mailmerge.fields
charles
external usenet poster
 
Posts: 274
Default Date Field - Switch to Suppress

Hi

I'm creating a mailmerge with an Excel spreadsheet in Word 2002.

A number of the fields are dates and sometimes the date is missing in the
spreadsheet.

In Word this blank date is showing as 12:00:00 AM. I have added the Switch
\@ "dd/mm/yyyy" to stop this displaying, but it didn't work.

How do I suppress this?

Thanks
  #2  
Old June 23rd, 2009, 12:52 PM posted to microsoft.public.word.mailmerge.fields
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Date Field - Switch to Suppress

You would have to trap what the field actually produces with a conditional
field construction eg

{IF {Mergefield Fieldname} "12:00:00 AM" "{Mergefield Fieldname \@
"dd/MM/yyyy"}"}

The bracket pairs {} are each entered with CTRL+F9.

--

Graham Mayor - Word MVP

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



Charles wrote:
Hi

I'm creating a mailmerge with an Excel spreadsheet in Word 2002.

A number of the fields are dates and sometimes the date is missing in
the spreadsheet.

In Word this blank date is showing as 12:00:00 AM. I have added the
Switch \@ "dd/mm/yyyy" to stop this displaying, but it didn't work.

How do I suppress this?

Thanks



  #3  
Old June 23rd, 2009, 01:06 PM posted to microsoft.public.word.mailmerge.fields
charles
external usenet poster
 
Posts: 274
Default Date Field - Switch to Suppress

Thank very much Graham, as always, I can rely on great assistance here.

Regards

Charles

"Graham Mayor" wrote:

You would have to trap what the field actually produces with a conditional
field construction eg

{IF {Mergefield Fieldname} "12:00:00 AM" "{Mergefield Fieldname \@
"dd/MM/yyyy"}"}

The bracket pairs {} are each entered with CTRL+F9.

--

Graham Mayor - Word MVP

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



Charles wrote:
Hi

I'm creating a mailmerge with an Excel spreadsheet in Word 2002.

A number of the fields are dates and sometimes the date is missing in
the spreadsheet.

In Word this blank date is showing as 12:00:00 AM. I have added the
Switch \@ "dd/mm/yyyy" to stop this displaying, but it didn't work.

How do I suppress this?

Thanks




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.