I am working with dates. I want Word to merge only records are that are
listed with "today's date". I was thinking something like {IF MERGEFIELD date
"Today's Date"} Where "Today's Date" is equal to the same type of field that
can be added to any Word document to display the current date.
I know that I could do this by changing the Query options every day, but I
am just trying to avoid that step.
> Not if you mean query in the sense that Word usually uses.
>
[quoted text clipped - 4 lines]
> how
> > would it be established?
Well, you could use something like
{ IF "{ MERGEFIELD mydate \@YYYYMMDD }" = "{ DATE \@YYYYMMDD }"
"put all your text etc. here" "" }
but unfortunately, that will still produce one blank letter/page/e-mail for
all the records that do not match.
Instead, you could put
{ SKIPIF "{ MERGEFIELD mydate \@YYYYMMDD }" <> "{ DATE \@YYYYMMDD }" }
at the beginning of your merge main document - just be aware that the Word
Help in Word 2000 and later advises you not to use SKIP.

Signature
Peter Jamieson
> I am working with dates. I want Word to merge only records are that are
> listed with "today's date". I was thinking something like {IF MERGEFIELD date
[quoted text clipped - 12 lines]
> > how
> > > would it be established?
LDanix - 07 Aug 2004 01:51 GMT
"\@YYYYMMDD" Does that specify the format of the date, or do I need to
replace YYYYMMDD with an actual date?
> Well, you could use something like
>
[quoted text clipped - 31 lines]
> > > how
> > > > would it be established?
Peter Jamieson - 07 Aug 2004 08:04 GMT
It specifies a format. The syntax of these fields is described in Word Help.
You only need the format switch because the format of the date coming in
from a merge data source may not be the same as the format Word uses when it
generates a date from { DATE }. I only use YYYYMMDD through force of habit
(it's the format you need to use if you want to use > or < instead of = to
decide which date is earlier).

Signature
Peter Jamieson
> "\@YYYYMMDD" Does that specify the format of the date, or do I need to
> replace YYYYMMDD with an actual date?
[quoted text clipped - 34 lines]
> > > > how
> > > > > would it be established?