The information in this article applies to:
SUMMARYThis article contains an example that demonstrates the use of the following WordBasic statement or function: MailMergeOpenDataSourceThis article supplements the information in online Help. To open this Help topic, choose Contents from the Help menu and then choose Programming with Microsoft Word. WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. MailMergeOpenDataSourceSyntax
This macro connects to the Microsoft Access NWIND.MDB database, using the
records in the Customers table as the data source for a Word 6.0 for
Windows Mail Merge:
Note: To determine the connection and query strings for
MailMergeOpenDataSource, set query options manually, and then use
MailMergeDataSource$() to return the strings.
The full ODBC connection string above is concatenated to produce:
The connection string for the ODBC Microsoft Access driver uses the following keywords:
To use a database that requires both a user login ID and a user-specified
password, add the above keywords to the connection string. For example:
REFERENCES
Word Developer's Kit, p. 579. Additional query words: 6.0 ODBC access winword word6
Keywords : kbmacroexample |
Last Reviewed: October 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |