Looking to take your VBA skills further?...

Discover twinBASIC — a powerful new development platform that expands on VBA and VB6 with advanced features, modern tools, and enhanced compatibility. Perfect for those ready to elevate their projects or transition from VBA, twinBASIC lets you build on what you already know and take your applications to the next level!

Try out twinBASIC Community Edition - it's free!

Mail Merge with Word for Windows

        1 votes: *****     6,986 views      No comments
by Allen Browne, 20 April 2005    (for Access v2)

MS-Access Tips for Casual Users

Provided by Allen Browne, allenbrowne.com


Mail Merge with Word for Windows

(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.

  1. From the Tools menu in Word, select Mail Merge.
  2. Choose Create, Form Letters, Active Window.
  3. Choose Get Data, Open Data Source, and select your MDB file.
  4. Select the Access table or query that contains the data to be merged.
  5. 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.

  1. In Word 2, create a new document based on the DATAFILE template that ships with Word.
  2. Start a copy of Access, and in the database container, select the name of the table or query that is to supply the data.
  3. From the Edit menu in Access, choose Copy. This places a reference to the data into the clipboard.
  4. With Access still running, switch back to Word 2.
  5. Under Tools menu, click:
    • Database Management Tools,
    • Link to Ext. Database,
    • Create Link from Clipboard,
    • Paste Link.
  6. 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:

  1. Database Management Tools,
  2. Link to Ext. Database,
  3. Update Links.

Rate this article:  Your rating: PoorYour rating: Not so goodYour rating: AverageYour rating: GoodYour rating: Excellent


Have your say - comment on this article.

What did you think of 'Mail Merge with Word for Windows'?

No comments yet.

Why not be the first to comment on this article?!

Have your say...

Name
E-mail (e-mail address will be kept private)
Comments


Comments require approval before being displayed on this page (allow 24 hours).