Re: Using dates during mail merge
- From: "Peter Jamieson" <pjj@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Feb 2008 09:45:09 -0000
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@xxxxxx
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.aspx/word-mailmerge/200802/1
.
- Follow-Ups:
- Re: Using dates during mail merge
- From: gjupp via OfficeKB.com
- Re: Using dates during mail merge
- References:
- Using dates during mail merge
- From: gjupp
- Re: Using dates during mail merge
- From: Doug Robbins - Word MVP
- Re: Using dates during mail merge
- From: gjupp via OfficeKB.com
- Re: Using dates during mail merge
- From: Graham Mayor
- Re: Using dates during mail merge
- From: gjupp via OfficeKB.com
- Using dates during mail merge
- Prev by Date: Re: Does Word allow more than one source doc for mailmerge?
- Next by Date: RE: Saving individual letters after a mail merge
- Previous by thread: Re: Using dates during mail merge
- Next by thread: Re: Using dates during mail merge
- Index(es):
Relevant Pages
|