ACC: Using Data from MS Access in a WordPerfect Mail MergeLast reviewed: June 3, 1997Article ID: Q104916 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. The following information describes how to prepare data in a Microsoft Access database to use in a mail merge in WordPerfect for DOS or WordPerfect for Windows.
MORE INFORMATIONWordPerfect for Windows and WordPerfect for DOS cannot read data from Microsoft Access in its native format. To use data from a Microsoft Access database in a WordPerfect mail merge, you must export the data from Microsoft Access in a format that WordPerfect recognizes as a valid mail merge data file (also called a "secondary file"). WordPerfect can use Delimited Text or dBASE data files as secondary files in a mail merge. The following information discusses how to export data from Microsoft Access for use in a WordPerfect mail merge.
Exporting Data from Microsoft Access for Use in WordPerfectIn Microsoft Access 7.0 and 97:
Performing a WordPerfect Mail Merge with Microsoft Access DataA WordPerfect mail merge is the process of combining information from two documents: a "primary file" (or form file) and a "secondary file" (or data file) to create a single merged document. The primary file, which is typically a form letter, is used to direct the merging process. The secondary file contains records of information, typically names and addresses, that WordPerfect uses to complete the primary file. The primary file contains placeholders (fields) that indicate where specific information from the secondary file, such as a first name or an address, should appear. The placeholders appear in the primary file starting with {FIELD} followed by a number indicating which field in the secondary file to use. The placeholder ends with a tilde character (~). For example, {FIELD}2~ indicates the placeholder for the second field in the secondary data file. In the Customer file exported earlier, this is the Company Name field. NOTE: In WordPerfect version 6.0 for DOS the field looks like FIELD(2). The fields appear in the secondary file in the same order as they appear in Microsoft Access. The fields in the Customers table in the Northwind.mdb (or NWIND.MDB) database are in the following order:
1. CustomerID (or Customer ID in versions 1.x and 2.0) 2. CompanyName (or Company Name in versions 1.x and 2.0) 3. ContactName (or Contact Name in versions 1.x and 2.0) 4. ContactTitle (or Contact Title in versions 1.x and 2.0) 5. Address 6. City 7. Region 8. PostalCode (or Postal Code in versions 1.x and 2.0) 9. Country 10. Phone 11. FaxWhen you create the primary file in WordPerfect, you can always refer to the field numbers in the same order as they appear in your Microsoft Access table or query.
REFERENCESFor more information about exporting data in Microsoft Access, search the Help Index for "exporting data."
|
Additional query words: wp51 wpwin print merge
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |