A Word form makes it easy to gather information from users or clients so that you can analyze it later. But getting the information into an Access table can be time-consuming, not to say error-prone. To avoid having to print out and reenter data into a table, you can use the Access Import Text Wizard to bring in the form data for you.Before you can use the wizard, you must save the form's data to a text file. In this example, we have asked employees to complete the form shown in Figure A.
Follow these steps to save the data in each completed form to a text file that will be imported into Access:
- Open one of the completed forms.
- Go to Tools | Options, click the Save tab, and select the Save Data Only For Form check box. (In Word 2007, click the Office button, click Advanced, and then scroll to Preserve Fidelity When Sharing This Document and select the Save Data As Delimited Text File check box.)
- Click OK.
- Save the file as a text file (for example, Project DatesTraining1.txt ) and then click Save.
- When the File Conversion dialog box appears, click OK.
You can now import the data in the text files into an Access table by following these steps:
- Create a blank database.
- Click File | Get External Data | Import. (In Access 2007, click the External Data tab and then click the Text File button in the Import Group.)
- Click in the File Name box and enter the full path name of the text file your want to import (Figure B).
- Click Import and then click Next.
- Click the Delimited Button (Figure C) and then click Next.
- In the following window (Figure D), click Next again.
- Click the Field One Column and enter Project ID in the Field Name box.
- Click the Field Two Column and enter Project Name in the Field Name box.
- Click the Field Three Column and enter Project Start Date in the Field Name box.
- Click the Field Four column enter Project End Date in the Field Name Box (Figure E).
- Click Next.
- Click Choose My Own Primary Key.
- Select Project ID from the drop-down list and click Next.
- Enter Training Projects in the Name box.
- Click Finish and then Close.
To add the next form, close the Training Projects table and follow these steps:
- Start the Import Wizard in Access.
- Enter the full path name of the next text file.
- Click the Append button and select Training Projects from the drop-down list.
- Click Next twice and then click Finish (Figure F).
Important Note: If you need to enter more than a handful of forms a day, you should consider using ADO (ActiveX Data Object) to create a code connection to the table that will automate the data transfer process.
Miss an Access tip?
Check out the Microsoft Access archive and catch up on other Access tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.