Steps to Merge Visual FoxPro data in MS-Word

 

  1. Open MS-Word and click on Tools > Mail Merge in the main menu.

  2. In the Mail Merge Helper dialog that appears, click on the Create button and select Form Letter in the sub-menu.

  3. Click on Get Data > Create Data Source in the Mail Merge Helper dialog.

  4.  

    Contents1.jpg

     

  5. In the Create Data Source dialog, click on MS Query button.



  6. IF MS QUERY BUTTON IS GRAYED OUT, YOU WILL NEED TO RE-INSTALL MICROSOFT WORD. SEE BELOW FOR INSTRUCTIONS.

    1. When re-installing Microsoft Word, you will see a screen in the wizard that lists all the office programs.
    2. Highlight Data Access in this list and click on "Options" button.
    3. In the Options list make sure "Microsoft Query" is checked.
    4. Continue with the wizard to complete re-install.

  7. MS-Query is opened with the Choose Data Source Dialog

  8.  

    Contents3.jpg

  9. In the Choose Date Source dialog, make sure that the Database tab is selected. Then select <new data source> in the list and click OK.

  10. The Create New Data Source dialog is displayed:

  11.  

    Contents4.jpg

    Generate/do-it.gif    Enter a name for your Data source

    Generate/do-it.gif    Select Microsoft Visual FoxPro Driver from the list.

    Generate/do-it.gif    Click on Connect button.

    Generate/do-it.gif    In the Configure Connection dialog, click on Visual FoxproDatabase (.DBC) option, and click on Browse button to select the Database file.

    Generate/do-it.gif    Find the location where you have installed Easy InnKeeping program. Under EasyInn, goto Database directory and select Easyinn.dbc (for example, C:\Easyinn\Database\EasyInnDB.DBC) and Click Ok

    Generate/do-it.gif    This brings the list of tables present in the database

  12. Select “GUESTINFO “ table, and press OK

  13. Select the data source you created in the choose data source dialog This brings the Query Wizard - Choose Columns dialog.

  14.  

    Contents5.jpg

  15. Select the fields you want to use in your mail merge and click on the > button.

  16. Select Filters if any and Sort Order if any and then click on the Next Button

  17. In the Query Wizard – Finish dialog, select “Return Data to Microsoft Word" option and click on the Finish button.

  18.  

    Contents6.jpg

  19. The program is back in MS-Word. Now click on the Edit New Document button.

  20. Now the Mail Merge Tool bar will appear on your MS-Word application.

  21. Select Insert Merge Field button and select the fields that you want to merge in the document.

  22. Then click on Tools > Mail Merge. In the Mail Merge Helper dialog, click on the Merge button. Now the values from the database fields will be added on to your document.

  23.