WD: How to Use Dates as Mail Merge Selection CriteriaLast reviewed: February 2, 1998Article ID: Q89532 |
The information in this article applies to:
SUMMARYIn Microsoft Word, you can perform a selective mail merge based on a list of dates. For example, you can merge records based on such criteria as a group of months, days of months, years or combinations of all three. For example, you can perform a selective mail merge based on a list of names and birthdates. In addition, you can instruct Word to change the date format of data in the merged document.
MORE INFORMATIONTo use the selective merge function:
These examples do not illustrate all possible selective merge combinations or date formats. To view all possible DATE field switches, choose field from the Insert menu. Under Categories, select Date And Time, under Field Names, select Date, and then click Options. All the possible date switch combinations appear in the Instructions box. It is not possible to do a selective print merge using less than or greater than statements based on dates because Word interprets the dates as text. The dates in Word do not have a numerical value that can be compared. For example this will NOT work: { if {MERGEFIELD mydate \@ "M/d/yy"} > "4/15/97 "true" "false" } For information on working with dates, please see the following articles in the Microsoft Knowledge Base:
ARTICLE ID: Q122842 TITLE: WD: How to Perform Calculations with Dates and Times ARTICLE ID: Q105537 TITLE: WD: How to Determine the Number of Days Between Two Dates REFERENCES"Microsoft Word for Windows User's Guide," version 2.0, pages 609-656, 751
|
Additional query words: conditional pmh
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |