Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.
Insert data from Access or other data source
You can use a query (query: A question about the data stored in your tables, or a request to perform an action on the data. A query can bring together data from multiple tables to serve as the source of data for a form, report, or data access page.) to import data from a Microsoft Access database or other data source. You can also use queries to sort and filter your data during the import process. To keep the data in your document up to date, you can create a link to the data source. Whenever the data is changed in the source file, Microsoft Word can automatically update it in your Word document. Insert information into an existing document
- In the Word document, click where you want to insert the contents of the table or query.
- Display the Database
toolbar (toolbar: A bar with buttons and options that you use to carry out commands. To display a toolbar, press ALT and then SHIFT+F10.), and then click Insert Database
.
- Click Get Data.
- Choose how to retrieve, filter, and sort the data by doing one of the following:
Browse for the file
- In the Look in box, click the location of the data source you want to use.
- In the Files of type box, click the type of data source you want to use. If you know the file name but not the file type, select All Data Sources.
- Click the data source file, and then click Open.
- In the Select Table dialog box, if available, click the table or query you want, and then click OK.
- To choose a subset of the records or fields or both to include in the Word table, click Query Options, and then select the criteria you want.
- Click OK.
Use Microsoft Query
- On the Tools menu in the Select Data Source dialog box, click MS Query.
- Construct your query.
Note If you want help with Microsoft Query, close the Choose Data Source dialog box, and then click Microsoft Query Help on the Help menu.
Use the Data Connection Wizard
Use the Data Connection Wizard to connect to databases on computers that are running Microsoft SQL Server and other database management systems. You can also use the Data Connection Wizard when you need to choose a specific database driver or ODBC data source name (DSN).
- In the Select Data Source dialog box, click New Source, and follow the directions in the Data Connection Wizard.
- Click the data source in the Select Data Source dialog box, and then click Open.
- To choose a subset of the records or fields or both to include in the Word table, click Query Options, and then select the criteria you want.
-
Click OK.
- To customize the Word table formatting, click Table AutoFormat, select the options you want, and then click OK.
- Click Insert Data.
- Under Insert Records, select the records to include in the Word table.
- If you want to be able to update the data in the Word table when the source data changes, select the Insert data as field check box.
Word inserts the data in the Word table as a DATABASE field (field: A set of codes that instructs Microsoft Word to insert text, graphics, page numbers, and other material into a document automatically. For example, the DATE field inserts the current date.), which is linked to the source table or query. To update the field, click in the table and press F9.
Export Access data into a new document
To transfer Access data to a new Word document, export an Access table, query, report, or other database object. Then you can use Word to format and edit the data, or you can use the data as a mail merge data source.
- In Access, open the database you want, and then open a database object: either a table, query, form, or report.
- To export part of the data only, select the rows or columns you want.
- On the File menu, click Export.
- In the Save as type box, choose a file format for the exported data:
- In the File name box, specify a file name for the new document.
- To export the entire database object, click Export All.
Export All is not available unless a you open database object, such as a table or query.
If you chose Text Files, you can export selected specific rows or columns in the data. Click the arrow next to Export All ,and then click Save Selection.
|