View Single Post
  #9   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Using dates during mail merge

You mean compare with things that are in your data source like

7th February2008
1st March2008

etc?

As long as you can use date and numeric field switches that generate
precisely the date format you need to compare with, you should be able to
use a simlar technique, e.g.

{ SKIPIF "{ MERGEFIELD mydatetext }" "{ DATE \@"D" \*Ordinal }{ DATE \@"
MMMMYYYY" }" }

Haven't tried it myself though, and at best you will only be able to do
exact comparisons (equal or not equal), not determine whether one date is
before the other.

--
Peter Jamieson
http://tips.pjmsn.me.uk

"gjupp via OfficeKB.com" u41094@uwe wrote in message
news:7f567b2bcda89@uwe...
Many thanks indeed. This works fine. However, to go one step further: Is
it
possible to compare the current date with a DateField that is formatted
(typed) dd+ordinals MMMMyyyyy?


Graham Mayor wrote:
You can compare a date in a field with the current date with your skipif
field

{SKIPIF {Mergefield DateField \@ "yyyyMMdd"} {Date \@ "yyyyMMdd"}}

Thanks for the reply.

[quoted text clipped - 23 lines]

Many thanks in anticipation.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...merge/200802/1