Re: Using dates during mail merge
- From: "gjupp via OfficeKB.com" <u41094@uwe>
- Date: Fri, 08 Feb 2008 13:17:20 GMT
Many thanks indded for this. I will try it out over the coming weekend and
let you know the result.
I am very grateful for your time
Graham Mayor wrote:
It appears there were two issues that prevented this from working here as
intended
1. I was using an ASK field to collect the date to compare thus
{ ASK MyDate "Start Date" \d { Date \@ "dd/MM/yyyy} \o }{ SKIPIF {
MERGEFIELD Date2 } <> "{ REF MyDate \@ "d " \*Ordinal}{ REF MyDate \@ " MMMM
yyyy" }" }
Unfortunately I was using one of my test data files which also had a field
called MyDate (unused in the merge) which conflicted with the bookmark of
the same name. With that fieldname changed it worked.
2. This construction will not work for a range of dates eg
{ ASK MyDate "Start Date" \d { Date \@ "dd/MM/yyyy} \o }{ SKIPIF {
MERGEFIELD Date2 } > "{ REF MyDate \@ "d " \*Ordinal}{ REF MyDate \@ " MMMM
yyyy" }" }
for that type of range you cannot compare dates with ordinal fields and must
revert to the switch I posted earlier. You cannot derive a date in the
format \@ "yyyyMMdd" from a field containing ordinal text.
Seems OK in both 2003 and 2000, with or without the quotes, which[quoted text clipped - 86 lines]
leads me to wonder whether we are attempting the same thing and/or
--
Message posted via http://www.officekb.com
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-mailmerge/200802/1
.
- 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
- Re: Using dates during mail merge
- From: Peter Jamieson
- Re: Using dates during mail merge
- From: gjupp via OfficeKB.com
- Re: Using dates during mail merge
- From: Peter Jamieson
- Re: Using dates during mail merge
- From: Graham Mayor
- Re: Using dates during mail merge
- From: Peter Jamieson
- Re: Using dates during mail merge
- From: Peter Jamieson
- Re: Using dates during mail merge
- From: Graham Mayor
- Using dates during mail merge
- Prev by Date: RE: Commercial Printing and stapling of merge file
- Next by Date: Re: How do i mail merge using excel spreadsheats
- Previous by thread: Re: Using dates during mail merge
- Next by thread: Re: Using dates during mail merge
- Index(es):
Relevant Pages
|