标题: Mail Merge with Word for Windows [打印本页] 作者: jsy165 时间: 2005-8-23 01:32 标题: Mail Merge with Word for Windows 文章标题:Mail Merge with Word for Windows
来源:http://allenbrowne.com/casu-03.html
(Special note: 16-bit programs such as WinWord 2 or 6 may have difficulty opening an .mdb file stored in a directory name containing a space such as "C:\My Documents".)
Using WinWord 6 or later, data merges with Access are unbelievably easy.
From the Tools menu in Word, select Mail Merge.
Choose Create, Form Letters, Active Window.
Choose Get Data, Open Data Source, and select your MDB file.
Select the Access table or query that contains the data to be merged.
Type your form letter, using the Insert Merge Field button on the toolbar wherever you want merge data to appear.
For users of WinWord 2, life is a little more complex. There are several methods, but this one allows you to use Access queries to sort and select records for merging.
In Word 2, create a new document based on the DATAFILE template that ships with Word.
Start a copy of Access, and in the database container, select the name of the table or query that is to supply the data.
From the Edit menu in Access, choose Copy. This places a reference to the data into the clipboard.
With Access still running, switch back to Word 2.
Under Tools menu, click:
Database Management Tools,
Link to Ext. Database,
Create Link from Clipboard,
Paste Link. When the data has been pasted, save this as your data document, and proceed as you normally would with merging two Word documents.
Unlike later versions of Word, if you later add or edit records in Access, you need to specifically inform Word 2 about it. With your data document active in Word 2, go to the Tools menu and click: