Friday, April 24, 2015

Learning How To Mail Merge


Introduction


Microsoft Access is a relational database system, which means its object components are generally interrelated to make sure data flows from one part of the database to another. This makes it easy and hard to perform mail merge.
A table in Microsoft Access is usually configured to accept certain data masks for effective data entry; for example a field can be configured to only accept a valid date or a recognizable employee number. A certain field can also be configured to receive its data either from a list of preset data (such as Ms., Mr., Mrs., or Dr.) or from another table. When this happens, a relationship will have been created between tables. This is wonderful for the functioning of the database. But such a table, when used in a mail merge process, would display numbers (because the fields providing lists or involved in a relationship) are using numbers to represent their data. In Microsoft Access the numbers are transparent, but during a mail merge, Microsoft Word can read only those numbers.
If you are not experienced with mail merge and Microsoft Access but would like to use a  database, create a table in your database so that all fields display obvious data, without involving tables relationships. Later on, when we learn how to program in mail merge, you will know how to deal with those issues. 

Practical Learning Practical Learning: Mail Merging Using a Database

  1. Start Microsoft Word
  2. On the main menu, click Tools -> Mail Merge...
  3. From the Mail Merge Helper, click Create -> Form Letters...

    Mail Merge Helper
  4. From the Microsoft Word dialog, click New Main Document

    Microsoft Word
  5. From the Mail Merge Helper again, click Get Data and click Open Data Source...

    Mail Merge Helper - Open Data Source
  6. From the Open Data Source dialog, click the arrow of the Files Of Types combo box and select MS Access Databases. Using the Look In combo box, locate the folder where the exercise files were installed, it should be C:\My Documents\Mail Merge Files
  7. Click Open.
  8. From the Microsoft Access dialog, click tblMembers

  9. And click OK.
  10. Now Microsoft Word would like you to create the letter.

    Edit Main Document

    Click Edit Main Document
  11. Now we will create the main letter.
    Since in the beginning we decided to create a New Main Document, you should have two instances of Microsoft Word running. From the Taskbar, click the other instance of Microsoft Word, it might display Document1 - Microsoft Word.
  12. On the main menu, click File -> Open...
  13. Locate the C:\My Documents\Mail Merge Files folder
  14. Click MS Access Letter1, then click Open. That opens the document we will use.
  15. On the main menu, click Edit -> Select All.
  16. On the main menu again, click Edit -> Copy
  17. From the Taskbar, click the instance of Microsoft Word that is holding our mail merge process.
  18. On the main menu, click Edit -> Paste. After the letter has been pasted, all we have to do now is to edit the document for our mail merge.
  19. Press Ctrl + Home to get to the beginning of the letter.
  20. Double-click Date to highlight it.
  21. On the main menu, click Insert -> Date and Time...
  22. From the Date And Time dialog, click the 3rd date

  23. And click OK
  24. Highlight CI.
  25. On the Mail Merge toolbar, click Insert Merge Field -> EmergncyTitle
  26. Press Space and click Insert Merge Field -> EmergncyName
  27. Press Enter and click Insert Merge Field -> Address
  28. Press Enter and click Insert Merge Field -> City
  29. Press Space and click Insert Merge Field -> State
  30. Press Space and click Insert Merge Field -> ZIPCode
  31. Press Space and click Insert Merge Field -> Country















  32. Click on the right side of Dear
  33. Click Insert Merge Field -> EmergncyTitle
  34. Press Space and click Insert Merge Field -> EmergncyName
  35. In the paragraph that follows, double-click CHILD to highlight it.
  36. Click Insert Merge Field -> FirstName
  37. Press Space and click Insert Merge Field -> LastName 
  38. In the paragraph that follows, highlight CHILD.
  39. Click Insert Merge Field -> FirstName
  40. In the paragraph that follows, double-click CAMP.
  41. Click Insert Merge Field -> CampSelected. Make sure you have some space between CampSelected and camp.
  42. In the same paragraph, double-click CHILD
  43. Click Insert Merge Field -> FirstName
  44. Click in the empty cell on the right side of Registration Date:
  45. On the Mail Merge toolbar, click Insert Merge Field -> RegistDate
  46. Click on the right side of Registration #:
  47. On the Mail Merge toolbar, click Insert Merge Field -> RegistrationNumber
  48. Click in the empty cell on the right side of Member Name:
  49. On the Mail Merge toolbar, click Insert Merge Field -> FirstName
  50. Press Space and click Insert Merge Field -> LastName
  51. Click in the empty cell on the right side of Contact Information:
  52. On the Mail Merge toolbar, click Insert Merge Field -> Address
  53. Press Enter and click Insert Merge Field -> City
  54. Press Space and click Insert Merge Field -> State
  55. Press Space and click Insert Merge Field -> ZIPCode
  56. Press Space and click Insert Merge Field -> Country
  57. Click in the empty cell on the right side of Emergency Contact:
  58. On the Mail Merge toolbar, click Insert Merge Field -> EmergncyTitle
  59. Press Space and click Insert Merge Field -> EmergncyName
  60. Click on the right side of Phone #:
  61. On the Mail Merge toolbar, click Insert Merge Field -> EmergncyPhone
  62. Click in the empty cell on the right side of Health Issues:
  63. On the Mail Merge toolbar, click Insert Merge Field -> HealthIssues
  64. Click in the empty cell on the right side of Hobbies:
  65. On the Mail Merge toolbar, click Insert Merge Field -> Hobbies
  66. Click in the empty cell on the right side of Camp Selected:
  67. On the Mail Merge toolbar, click Insert Merge Field -> CampSelected
  68. Click in the empty cell on the right side of Start Date:
  69. On the Mail Merge toolbar, click Insert Merge Field -> StartDate
  70. Click on the right side of End Date:
  71. On the Mail Merge toolbar, click Insert Merge Field -> EndDate

  72. To read the letter as merge with a Microsoft Access database table, on the Mail Merge toolbar, click View Merged Data
  73. Use the navigation buttons to review all the letters with each recipient

No comments:

Post a Comment