7
Lesson 5 – Creating an Attachment field Attachment fields are similar to hyperlink fields but link to documents rather than websites. Various types of external files such as Excel workbooks, Word documents, PowerPoint presentations and image files can be attached to a database. Multiple documents may be attached to any record. Tutorial Steps Follow the steps outlined below to add and interact with an attachment field in the Panorama database. Creating an Attachment Field 1. Download and save the Panorama5.accdb, Plan1.jpg, Landscaping Agreement.docx, and Landscape Plans Presentation.pptx files from the Lesson 5 page. 2. Open the Panorama database. Open the Contract table in Design view. 3. In a blank field underneath the Contract Type field, enter the field name LandscapePlanFiles. 4. Set the field type as Attachment. 5. Save your table changes. Adding a Caption to the Attachment Field 1. Switch to Datasheet view for the Contract table. 2. Scroll to the far right of the table. Notice that the default column heading for the attachment field is the Attachment symbol (paperclip). This occurs regardless of the field name entered Page 1 of 7

ww2.nscc.eduww2.nscc.edu/swanson_l/ACCT 2840/2013 Course/2840 Lessons... · Web viewVarious types of external files such as Excel workbooks, Word documents, PowerPoint presentations

Embed Size (px)

Citation preview

Lesson 5 – Creating an Attachment field

Attachment fields are similar to hyperlink fields but link to documents rather than websites. Various types of external files such as Excel workbooks, Word documents, PowerPoint presentations and image files can be attached to a database. Multiple documents may be attached to any record.

Tutorial Steps

Follow the steps outlined below to add and interact with an attachment field in the Panorama database.

Creating an Attachment Field

1. Download and save the Panorama5.accdb, Plan1.jpg, Landscaping Agreement.docx, and Landscape Plans Presentation.pptx files from the Lesson 5 page.

2. Open the Panorama database. Open the Contract table in Design view.3. In a blank field underneath the Contract Type field, enter the field name

LandscapePlanFiles.4. Set the field type as Attachment.

5. Save your table changes.

Adding a Caption to the Attachment Field

1. Switch to Datasheet view for the Contract table.2. Scroll to the far right of the table. Notice that the default column heading for the attachment

field is the Attachment symbol (paperclip). This occurs regardless of the field name entered for this field.

3. Switch to Design view and select the LandscapePlanFiles field.4. Enter the following caption for this field: Landscape Plan Files.5. Save your design changes and toggle to Datasheet view.6. The caption should now appear as the column heading. Adjust the column size to best fit so

that the column heading fully displays.

Page 1 of 5

Adding a Document to an Attachment Field

1. Notice that each record has an attachment symbol followed by (0). This indicates that the field is an attachment field but no documents are attached to the record.

2. To insert a document for Contract 3011 (record 1), double-click the attachment symbol for this record.

3. Click the Add… button from the Attachments dialog box.

4. Navigate to the drive that contains your downloaded files for this course. 5. Double-click the Plan1.jpg file to select it. Once you press OK, an attachment to this file will be

added to the record for Contract 3011.6. Before clicking OK, you will add two more documents to this record. Click the Add... button

and select Landscaping Agreement.docx. Click the Add… button one more time and select Landscape Plans Presentation.pptx.

7. Click OK. The Attachment field for Contract 3011 now shows that 3 files are attached to this record.

Page 2 of 5

Opening an Attached File

1. Double-click the attachment symbol for the Contract 3011 record. The Attachments dialog box opens. A list of all documents attached to this record is displayed.

2. Double-click the Plan1.jpg link. The Plan1 image file opens.3. Close the Plan1 image window. Close the Attachments dialog box.

Deleting an Attached File1. Double-click the attachment symbol for the Contract 3011 record. The Attachments dialog box

opens.2. Select the file to delete by clicking it once. Click the Remove button. Click OK.

3. Click the Cancel button to close the Attachments dialog box without deleting any attachments.

Using Attachment Fields in Forms1. Close the Contract table. If asked if you want to save any changes, select Yes.2. Verify that the Contract table is selected in the Objects pane. 3. From the Create tab, click Form. An autoform is created based on the Contract table.4. Notice that an icon for the PowerPoint presentation appears in the attachments field. Click the

PowerPoint icon to reveal the Attachments Navigation bar.

Page 3 of 5

5. Click the green forward arrow to scroll through each attached document. Notice that the Plan1 file displays the image.

6. To open the Landscaping Agreement file, display the attachment navigation bar and click the paperclip*. The Attachment dialog box displays and files can be opened by double-clicking the desired file.*Alternate Method: Ensure you are in Form view and double-click any file icon. The Attachments dialog box displays.

7. Close the Landscaping Agreement file. Close the Attachments dialog box.

Changing the Displayed Icon for the Attachments Field1. Ensure you are in Layout view. With the attachments field selected, right-click the field. Click

Properties from the pop-up menu.

Page 4 of 5

2. On the Property Sheet, make sure the Format tab is selected.3. Click the drop-down arrow on the right side of the Display As property.

4. Select Paperclip from the options list and close the Property Sheet.5. Notice that the attachment field now displays a paperclip with the number of attachments in

parentheses.6. Double-click the paper clip to display the Attachments dialog box. Close the Attachments dialog

box.7. Save the form as ContractFrm.8. Close the Panorama 5 database.

Page 5 of 5