
If you’d rather not alter the actual object, use a copy or use the AutoForm wizard to generate a quick form based on the Customers table.

To simply the example, use the existing Customers form in Northwind. The most common method you’ll probably use to identify a specific record is an Access form. Then, save the form as CustomerSlip.doc and close it. Doing so disables a number of features, which will keep casual users from altering your form. It isn’t necessary to name the Word fields similarly to their corresponding Access fields, but doing so is self-documenting and simplifies your work.Īfter adding all the fields, click the Protect Form button. However, notice that the Word field names match the Access field names, with an additional fld prefix. The field heading doesn’t have to match the field names. Repeat steps 2 through 5 to add a text field for each heading, using the following list to name each field: Word field heading


We’ll work with existing data in the Northwind database (the sample database that comes with Access). A Word document that represents the form you need to fill.
Microsoft word form fields code#
A bit of VBA code to automate the process.A method of identifying the Access data you want to transfer.The automated solution requires three pieces: Note:This information is also available as a download, which includes text files containing the VBA code from Listing A and Listing B. The good news is that Word and Access play well together. When this is the case, you may find it necessary to transfer Access data to Word forms. Now, you might not care what the report (paper form) looks like, but perhaps management does. For instance, you may find that you can’t exactly reproduce an existing paper form in Access, whereas you can in Word. Access reports provide a flexible and easy-to-use tool for sharing data, but sometimes, it’s the wrong tool.

Susan Harkins walks through an example to demonstrate the process. When you need to bring your Access data into a Word form, a little VBA can expedite the task. How do I… Fill Word form fields with Access data?
