| | Product Information Help and How-to Training Templates Support and Feedback Technical Resources Additional Resources | 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.
Use files from other Office programs in your Access forms and reports
| Applies to |
| Microsoft Office Access 2003 |
Access provides several ways to use files that were created in other Microsoft Office 2003 programs — Word documents, Excel workbooks, PowerPoint presentations, Visio diagrams, and more. This article explains how to store those files and and display them on your forms and reports.
Table of contents
Using files from other Office programs
The process of using files from other Office programs in an Access database typically follows several broad steps. First, you decide how and where you want to store the files that you want to use. You can leave them on your network or hard disk or make them part of your database file.
Next, you add a control to your forms and reports and display your files by using that control. If you want the files to change as you move through your records, you use a bound object frame. Otherwise, you use an unbound object frame. As part of that process, you also choose to embed your files or link to them. Embedding makes the file a part of your database. In contrast, linking creates a reference to the original file. When you update the original file, you see any changes when you view that file in your database.
Note You cannot update or delete data in a table that is linked to a Microsoft Office Excel 2003 worksheet.
If you're new to using files from other programs with an Access database, you need to make informed choices about how you store and display those files. If you make the wrong storage choices, you can rapidly inflate the size of your database and cause it to run slowly. If you link to your files and move either your database or the files, your links break.
About storing files
You have several options for storing the files that you want to use with an Access database:
- Embed the file in an OLE Object field in a database table.
What's an OLE Object field?
OLE is the technology used to share files among the various Office programs. For example, when you insert an Excel worksheet into a Word document, or insert a PowerPoint presentation into a Visio drawing, you're using OLE. You use an OLE Object field when you need to store files (or links to them) directly in your database.
This method is the easiest to implement because you use the screens and tools that Access provides. Also, the files become part of your database and travel with it, so you never need to to update the links to them.
However, storing files this way can rapidly inflate the size of your database, because OLE creates an additional bitmap image for each original file. Remember that your Access databases have a 2 gigabyte size limit, and when they approach that limit they start to run slowly.
Why does OLE create bitmap files?
By design, OLE uses components called OLE servers to display files that were created in other Office programs. An OLE server is a component provided by the program that was used to create the original file. When you use a file from another Office program with your database, the OLE server on that originating program renders the file, not Access.
For example, suppose you display a PowerPoint presentation in a bound object frame in Access. The object frame relies on PowerPoint to render the slides. Put another way, Access does not render the slides. PowerPoint does the rendering work.
At this point, you need to keep several facts in mind.
- To render a file, the program used to create that file must reside on the same computer as your Access database. If that program fails, or you move the database to a computer that does not contain the originating program, OLE cannot render the file.
- OLE works around those possible problems by creating a .bmp file or Device Independent Bitmap (.dib) file that contains display data for each of your original files. If you move the database, or the parent program fails, OLE renders the bitmap image, and you at least see a version of the original file.
- Those BMP and DIB files are often larger than your original file, and that is why your database can grow so rapidly.
- Outside of Microsoft Office, you can't predict whether a given program will provide the OLE server that is needed to render a given type of file.
- Store your files on a hard disk or network and store links to them in an OLE Object field. This method is similar to embedding files in an OLE Object field, but it consumes less storage space. Also, if you update the original file, you see any changes when you view the file in your database.
However, if you move your database or your files, you have to update your links.
Also, your links break if your files become corrupted. In addition, the computer that contains your database must also contain the program that was used create the original file, or OLE cannot render the file.
- Store your files on a hard disk or network and either embed them or link to them directly from the control.
This method bypasses table fields altogether and thus saves storage space. It also has the same advantages and disadvantages as storing links in a database table. Keep in mind that if you choose to embed the file, you make that file part of your database and potentially cause that database to grow.
About displaying files
As part of using files from other Office programs in Access, you need to learn some terminology and know the answers to some key questions:
The following sections explain those options and the best ways to use them.
Understand bound and unbound files
You use a bound file when you want your files to change as you move among the records in your database or the pages in a report. Bound files typically reside in an OLE Object field in one of your database tables. The field can store links to the files, or it can store the files outright as embedded objects. However, remember that embedded files can rapidly increase the size of your database and cause it to run slowly. For more information about storing files in database tables, see Storing files in a database.
If you want the file to remain unchanged as you move between records or pages, you use an unbound file. Unbound files can reside in your database (if you embed them in your forms or reports), on your hard disk, or on a network.
The decision to use bound or unbound files also determines the type of control that you place on your form or report. If you use bound files, you display them in a control called a bound object frame. To display unbound files, you use an unbound object frame. The how-to sections later in this article explain how to use each control.
Understand embedding and linking files
You can embed files in your forms and reports, or you can link to them. When you embed a file, Access makes it a part of your database file and it is always available for use by the form or report. However, embedding files can increase database size, because Access adds each instance of an embedded file to the database file. For example, if you embed a copyright notice in 20 different forms and five reports, Access stores that notice 25 times. That redundant storage can rapidly increase the size of your database and cause it to run slowly, and if you change the notice, you have to change all 25 instances.
In contrast, linked files reside outside of your database file. You can link to a file located on your hard disk or elsewhere on a network. Linking to files helps reduce the size of your database file because Access stores only the path to the file. However, linking can create more work for you. For example, if you move a file, you have to update each of the links to that file. In addition, your links break if the file becomes corrupted or your network fails. If you have a stable network or a relatively permanent place to store your files, linking is a good choice because it allows you to update your files in less time and with less cost, and it reduces the size of your database.
Back to top
Storing files in a database
The following sections explain the most common ways to store files in an Access database. The storage methods work for forms and reports. The steps use the sample Northwind Traders database, but you can adapt the steps to suit your own databases.
The process of embedding or linking to files in a table follows these broad steps:
- If you haven't already, add an OLE Object field to an existing table, or create a new table and add an OLE Object field.
- Insert your files into the field. During that process, you choose whether you embed or link to the file. You can also start the parent program for a given file type and create a new file without leaving Access. When you take that action, Access embeds the file in your table, and the file becomes part of the database.
The following sections explain how to perform those tasks.
Add an OLE Object field to an existing table
- Open the table in Design view by clicking Design
.
- In the first blank row of Design view, under Field Name, type Document.
- Click the next field (the field in the Data Type column), and select OLE Object from the list.
- Save the table.
- You can now embed or link to files. To do so, close the table in Design view, open it in Datasheet view (double-click the table to reopen it), and go to either of the following sections in this article.
Create a new table containing an OLE Object field
- In the Database window, under Objects, click Tables, and then double-click Create table in Design view.
- In the first row of Design view, under Field Name, type ID.
- Click the first field under Data Type and select AutoNumber from the list.
- Right-click anywhere in the first row and click Primary Key. This sets the ID field as the primary key for the table.
- In the next row, type Document in the Field Name column, and select OLE Object from the list in the Data Type column.
- Save the table. You can accept the name that Access gives the table or use another name.
- You can now embed or link to files. To do so, close the table in Design view, open it in Datasheet view (double-click the table to reopen it), and go to either of the following sections in this article:
Add existing files to the OLE Object field (embedded or linked)
The steps in this section use the existing or new tables that were described in the previous sections. You can use your own tables and files.
- Right-click the first field in the Document column of the table, and then click Insert Object.
- Click Create from File, and then click Browse.
- Browse to one or more Word documents, Excel workbooks, Visio diagrams, or other files that were created with an Office program. Select the file and then click OK.
- To link to a file, click Link, and then click OK again to complete the process. To embed the file in the table, leave the Link check box cleared, and then click OK. The type of file that you selected appears in the table field. For example, if you linked to or embedded an Excel file, the words "Microsoft Excel Worksheet" appear in the field.
Note If "Package" appears in the OLE Object field, you're trying to link to or embed an unsupported file type, such as a file created with a program outside of Office. You can delete the entry by right-clicking it and clicking Cut, and then repeating the preceding steps as needed to locate the correct type of file. If "Package" appears because the parent program is not installed on the same computer as your database, you must first install the program, delete (press CTRL+C or on the Edit menu, click Cut) all instances of "Package," and either embed or link to the files that you want.
- Go to the other fields in the Document column and repeat steps 2 through 4 until you've added the files that you want.
Start a parent program and create a new file in Access
When you add a file to an OLE Object field, you have the option of starting one of the Office programs and creating a new file in Access. Keep in mind that if you follow these steps, Access embeds the resulting file and it becomes part of the database. You cannot link to the new file. If you need to save space by linking to files, skip these steps.
The steps in this section use the existing or new tables that were described in the previous sections. You can use your own tables and files.
- Right-click the first blank field in the Document column of the table, and then click Insert Object.
- If the type of file that you want to create isn't selected, click Create New, and select the type of file that you want from the Object Type list. You can optionally select Display as Icon to display an icon instead of the actual file. Displaying icons instead of the embedded files saves space on your forms and reports. After you make your choices, click OK.
The program used to create the file starts.
- Use the program to create your new file. When you finish, click Save
on the toolbar of the parent program. Access assigns a name to the file (you can not choose a name unless you want to save a separate copy of the file), and the name takes this form: file_type
in
name_of_table
: Table. For example, if you create a Word document from within a table called Other_Files , the file name would read "Document in Other_Files : Table." If you created a Visio drawing, the title would be "Drawing in Other_Files : Table," and so on.
- When you finish saving, Access embeds the file in the field, and the file type appears in the field. For example, if you create a Windows Bitmap file, "Bitmap Image" appears in the field. If you create an Excel worksheet, "Microsoft Excel Worksheet" appears in the table field, and so on.
- Go to the other fields in the Document column and repeat steps 1 through 3 until you've added the files that you want.
Back to top
Adding unbound files to forms
and reports
You use the unbound object frame to display files that don't change as you move among database records or the pages in a report. These steps explain how to add the unbound object frame to forms and reports and how to add existing files to the frame or create new files in the frame. The steps use the sample Northwind Traders database, but you can apply them to your own database.
- Start Access, open the Northwind Traders sample database, and then display the Database window.
How?
- On the Help menu, point to Sample Databases, and then click Northwind Sample Database.
- If a Security Warning dialog box appears, click Open.
- Click OK to close the Northwind Traders startup screen.
- On the Main Switchboard screen, click Display Database Window.
- At this point, you can create a new form or report and add a file to it, or you can add files to existing forms or reports. You can also create new files as you add the object frame to your form. The steps in the following sections explain how to take those actions.
Create a new form and add unbound files
When you add an unbound object frame to a form, you can embed or link to existing files, or you can create a new, embedded file in the frame. The following sections explain how to take both actions.
To add an existing file to a new form
- In the Database window, under Objects, click Forms, and then double-click Create form in Design view. Access opens a new, blank form and displays the toolbox. If the toolbox does not appear, on the View menu, click Toolbox.
- In the toolbox, click Unbound Object Frame
.
- Point to the location on the form where you want to display your file, and click once to place the control on the form. The location that you select marks the upper-left corner of the object frame. The Microsoft Office Access dialog box appears.
- Click Create from file, and then click Browse. The Browse dialog box appears.
- Use the Browse dialog box to locate the file that you want to display, and then click OK. If you want to save storage space by linking to the file instead of embedding it in your database, click Link before you click OK.
- Optionally, you can set properties for the object frame. For example, you can allow or prevent users from editing a file by enabling or disabling the Locked property. To set and change properties, right-click the object frame and click Properties. For a description of each property and help on how to use it, select a property and press F1.
- Add any remaining controls to the form, such as lists, text boxes, and subforms, and save your changes
. You can type a name for the form or accept the name that Access provides.
To add a new file to a new form
- Repeat steps 1 through 3 from the previous section to create a new form and display the Microsoft Office Access dialog box.
- Click Create New, select a file type from the Object Type list, and then click OK.
Depending on the type of file that you choose to create, a program control appears, and you use that control to create the file. For example, if you choose to create an Excel worksheet, a cell grid appears on your form, and the Excel toolbars temporarily replace the Access toolbars. You see the same behavior when you create a PowerPoint presentation, a Word document, and so on. Use the control and toolbars to enter and format your data.
If you need to resize the program control, click the surrounding form and drag the handles on the program control as needed. To return to editing data in the program control, double-click the control.
- When you finish entering data, on the File menu, click Save As. The Save As dialog box appears.
- In the upper text field, type a name. This is a name for the new form, not the file in the object frame. You cannot assign a name to the new file because the file becomes an embedded part of the larger database (.mdb) file.
- From the As list, select Form, and then click OK.
- Add any remaining controls to the form, such as lists, text boxes, and subforms, and save your changes
. To view the form, close and reopen it.
Create a new report and add unbound files
When you add an unbound object frame to a report, you can embed or link to existing files, or you can create a new, embedded file in the frame. The following sections explain how to take both actions.
To add an existing file to a new report
- In the Database window, under Objects, click Reports, and then double-click Create report in Design view. Access opens a new, blank report.
- On the View menu, click Toolbox.
- In the toolbox, click Unbound Object Frame
.
- Point to the location on the report where you want to display your file, and click once to place the control on the report. You can place the frame in the Page Header, Detail, or Page Footer section of the report. The location that you select marks the upper-left corner of the object frame. The Microsoft Office Access dialog box appears.
- Click Create from file, and then click Browse. The Browse dialog box appears.
- Use the Browse dialog box to locate the file that you want to display, and then click OK. If you want to save storage space by linking to the file instead of embedding it in your database, click Link before you click OK.
- Optionally, you can set properties for the object frame. For example, you can allow or prevent users from editing a file by enabling or disabling the Locked property. To set and change properties, right-click the object frame and click Properties. For a description of each property and help on how to use it, select a property and press F1.
- Add any remaining fields and save your changes
. You can type a name for the report or accept the name that Access provides.
- To view the report, either close and reopen it, or click Preview
.
To add a new file to a new report
- Repeat steps 1 through 3 from the previous section to create a new report and display the Microsoft Office Access dialog box.
- Click Create New, select a file type from the Object Type list, and then click OK.
Depending the type of file that you choose to create, a program control appears, and you use that control to create the file. For example, if you choose to create an Excel worksheet, a cell grid appears on your form, and the Excel toolbars temporarily replace the Access toolbars. You see the same behavior when you create a PowerPoint presentation, a Word document, and so on. Use the control and toolbars to enter and format your data.
If you need to resize the program control, click the surrounding report and drag the handles on the program control as needed. To return to editing data in the program control, double-click the control.
- When you finish entering data, on the File menu, click Save As. The Save As dialog box appears.
- In the upper text field, type a name. This is a name for the new report, not the file in the object frame. You cannot assign a name to the file in the frame because you're embedding the file, which makes it part of the larger database.
- From the As list, select Form, and then click OK.
- Add any remaining fields and save your changes
. You can type a name for the report or accept the name that Access provides.
- To view the report, either close and reopen it, or click Preview
.
Add unbound files to an existing form
When you add an unbound object frame to a form, you can embed or link to existing files, or you can create a new, embedded file in the frame. The following sections explain how to take both actions.
To add an existing file to an existing form
- In the Database window, under Objects, click Forms, select the form that you want to change, and then click Design
. Access opens the form in Design view and displays the toolbox. If the toolbox does not appear, on the View menu, click Toolbox.
- In the toolbox, click Unbound Object Frame
.
- Point to the location on the form where you want to display your file, and click once to place the control on the form. The location that you select marks the upper-left corner of the object frame. The Microsoft Office Access dialog box appears.
- Click Create from file, and then click Browse. The Browse dialog box appears.
- Use the Browse dialog box to locate the file that you want to display, and then click OK. If you want to save storage space by linking to the file instead of embedding it in your database, click Link before you click OK.
- Optionally, you can set properties for the object frame. For example, you can allow or prevent users from editing a file by enabling or disabling the Locked property. To set and change properties, right-click the object frame and click Properties. For a description of each property and help on how to use it, select a property and press F1.
- Save
your changes
.
To add a new file to an existing form
- Repeat steps 1 through 3 from the previous section to open a form in Design view and display the Microsoft Office Access dialog box.
- Click Create New, select a file type from the Object Type list, and then click OK.
Depending the type of file that you choose to create, a program control appears, and you use that control to create the file. For example, if you choose to create an Excel worksheet, a cell grid appears on your form, and the Excel toolbars temporarily replace the Access toolbars. You see the same behavior when you create a PowerPoint presentation, a Word document, and so on. Use the control and toolbars to enter and format your data.
If you need to resize the program control, click the surrounding form and drag the handles on the program control as needed. To return to editing data in the program control, double-click the control.
- When you finish entering data, click Save
to save your changes. Note You cannot assign a name to the new file because the file becomes an embedded part of the larger database (.mdb) file.
Add unbound files to existing reports
When you add an unbound object frame to a report, you can embed or link to existing files, or you can create a new, embedded file in the frame. The following sections explain how to take both actions.
To add an existing file to an existing report
- In the Database window, under Objects, click Reports, select the report that you want to change, and click Design
. Access opens the report in Design view and displays the toolbox. If the toolbox does not appear, on the View menu, click Toolbox.
- As needed, move the existing fields in your report to make room for the control that will render your file.
- In the toolbox, click Unbound Object Frame
.
- Point to the location on the report where you want to display your file, and click once to place the object frame on the report. The location that you select marks the upper-left corner of the object frame. The Microsoft Office Access dialog box appears.
- Click Create from file, and then click Browse. The Browse dialog box appears.
- Use the Browse dialog box to locate the file that you want to display, and then click OK. If you want to save storage space by linking to the file instead of embedding it in your database, click Link before you click OK.
- Optionally, you can set properties for the object frame. For example, you can allow or prevent users from editing a file by enabling or disabling the Locked property. To set and change properties, right-click the object frame and click Properties. For a description of each property and help on how to use it, select a property and press F1.
- Save
your changes
.
- To view the report, close and reopen it, or click Preview
.
To add a new file to an existing report
- Repeat steps 1 through 4 from the previous section to open a report and display the Microsoft Office Access dialog box.
- Click Create New, select a file type from the Object Type list, and click OK.
Depending the type of file that you choose to create, a program control appears, and you use that control to create the file. For example, if you choose to create an Excel worksheet, a cell grid appears on your form, and the Excel toolbars temporarily replace the Access toolbars. You see the same behavior when you create a PowerPoint presentation, a Word document, and so on. Use the control and toolbars to enter and format your data.
If you need to resize the program control, click the surrounding report and drag the handles on the program control as needed. To return to editing data in the program control, double-click the control.
- Save your changes
.
- To view the report, close and reopen it, or click Preview
.
Back to top
Adding bound files to forms and reports
The process of adding bound files to a form or report typically follows several steps. First, either you embed files in an OLE Object field, or you insert links to your files in that field. Next, you bind the form or report to the table that contains the OLE Object field and use the bound object frame to render the files.
The following sections explain how to add bound files manually and how to add them by using the various form wizard or report wizards.
Note To complete the steps in these sections, you must have a database table with an OLE Object field, and that field must contain one or more embedded or linked files. For information on configuring a table for use with bound files, see Storing files in a database.
Use the Form Wizard to create a new form containing bound files
The Access Form Wizard provides a faster, easier way to create a form and display files that correspond to individual database records. These steps use the Northwind Traders sample database, but you can use your own database and adapt these steps to fit your needs.
- Open the Northwind Traders sample database and display the Database window.
How?
- On the Help menu, point to Sample Databases, and then click Northwind Sample Database.
- If a Security Warning dialog box appears, click Open.
- Click OK to close the Northwind Traders startup screen.
- On the Main Switchboard screen, click Display Database Window.
- In the Database window, under Objects, click Forms, and then double-click Create form by using wizard.
- On the first page of the wizard, select the table that contains your file data, and move the OLE Object field (the field containing your file data) from Available Fields to Selected Fields. If you're using Northwind, select the Categories table and move the Picture field. When you finish, click Next.
- Repeat the previous step as needed to add any remaining fields to your form.
- Use the remaining pages in the wizard to select a layout, style, and name for your form, and then click Finish.
Access creates the form, adds a bound object frame to the form, binds the frame to the OLE Object field in the table, and opens the form for viewing. The files change as you navigate through the records.
Use the Report Wizard to create a new report containing bound files
The Access Report Wizard provides a faster, easier way to create a report and display files that correspond to individual report pages. These steps use the Northwind Traders sample database, but you can use your own database and adapt these steps to fit your needs.
- Open the Northwind Traders sample database and display the Database window.
How?
- On the Help menu, point to Sample Databases, and click Northwind Sample Database.
- If a Security Warning dialog box appears, click Open.
- Click OK to close the Northwind Traders startup screen.
- On the Main Switchboard screen, click Display Database Window.
- In the Database window, under Objects, click Reports, and then double-click Create report by using wizard.
- On the first page of the wizard, select the table or query that provides your file data, and move the OLE Object field (the field containing your file data) from Available Fields to Selected Fields. If you're using Northwind, you can select the Categories table and move the Picture field. When you finish, click Next.
- Repeat the previous step as needed to add the remaining fields to your report.
- Use the remaining pages to select a layout, style, and name for your report, and then click Finish.
Access creates the report, adds a bound object frame to it, binds the frame to the OLE Object field in the table, and opens the report for viewing. The files change as you navigate through the pages.
Manually create a form containing bound files
- Open the Northwind Traders sample database and display the Database window.
How?
- On the Help menu, point to Sample Databases, and click Northwind Sample Database.
- If a Security Warning dialog box appears, click Open.
- Click OK to close the Northwind Traders startup screen.
- On the Main Switchboard screen, click Display Database Window.
- In the Database window, under Objects, click Forms, and then double-click Create form in Design View. Access creates a new, blank form. The toolbox and the property sheet for the new form appear.
- On the property sheet for the new form, click the Data tab, click the Record Source property box, and then select the table that contains your files. The Field List appears
.
- Drag the OLE Object field that contains your file data from the field list to your form. Place the upper-left corner of the icon at the location where you want the files to appear, and release the mouse button.
- Save the form, and then close and reopen it to view it .
Manually create a report containing bound files
- Open the Northwind Traders sample database and display the Database window.
How?
- On the Help menu, point to Sample Databases, and click Northwind Sample Database.
- If a Security Warning dialog box appears, click Open.
- Click OK to close the Northwind Traders startup screen.
- On the Main Switchboard screen, click Display Database Window.
- In the Database window, under Objects, click Reports, and then double-click Create report in Design View. Access creates a new, blank report.
- Double-click the report selector
to display the property sheet for the report.
- On the property sheet, click the Data tab, click the Record Source property box, and then select the table that contains your files. The Field List appears
.
- Drag the OLE Object field that contains your file data from the field list to your report. Place the upper-left corner of the icon at the location where you want the files to appear, and release the mouse button. This automatically places a bound object frame on the report. You can place the frame in any section of the report.
- Add the remaining fields to your report, save it, and then close and reopen it to view it.
Add bound files to an existing form or report
- If necessary, add an OLE Object field to the table from which the form or report takes its data. For information on adding the field and adding file data to that field, see Storing files in a database.
- If your form uses a query as its record source instead of a table, you add the OLE Object field to the appropriate table, add your file data to the field, and then alter the query to return the new column.
How do I alter a query?
Note The process of altering queries varies with the type and complexity of the query. For that reason, these steps explain the basic process for adding a field to a query. For more information about creating and changing queries, see the links at the end of this section.
- In the Database window, under Objects, click Queries, select the query that you want to change, and then click Design
to open the query in the query Design view.
- If the field that you want to add to the query does not appear in the design grid, then on the toolbar, click Show Table
.
- In the Show Table dialog box, click the Tables tab, select the table that contains your OLE Object field, click Add, and then click Close.
- In the query designer, locate and double-click the OLE Object field that contains your file data. The new field should appear in the design grid. The figure illustrates the field in a sample query that returns file data.

- Click Save
to save the query. Help! I need more information!
For more information about creating and changing queries, see the following articles on Microsoft Office Online:
- After
you finish altering your data source, you add a bound object frame to your form or report and bind the frame to the table or query.
How?
- In the Database window, under Objects, click either Forms or Reports, select the form or report that you want to change, and then click Design
. The Field List appears .
- Drag the OLE Object field that contains your file data from the list to your form or report. Place the upper-left corner of the icon at the location where you want the files to appear, and release the mouse button.
- Save the form or report, and then click Open (for a form) or Preview (for a report) to view your changes.
Back to top
Updating and editing links and files
If you link to files and then change the location of your database or the location of your files, you must update those links. The following sections explain how to update links to files in bound and unbound object frames.
In addition, these sections explain how to edit files in Access.
Update a link to a file in a bound or unbound object frame
- Do one of the following:
- To update unbound files, open the form or report that contains the unbound object frame in Design view by clicking Design
.
- To update bound files, open the form or report for viewing (or open the underlying table in Datasheet view), and select the link that you want to change.
- On the Edit menu, click OLE/DDE Links.
- In the Links box, click the link that you want to reconnect or change.
- Click Change Source.
- In the Change Source dialog box, select the new file name. You may need to switch to a different drive or folder or both to find the appropriate file.
- Click Open to complete the link and close the Change Source dialog box, and then click Close in the Links dialog box.
Note When you change a link for a bound object frame, you change the link only for the current database record. To make a change in a different record, move to that record and repeat the process.
Edit files in Access
If the computer that runs your database has the Office programs installed that were used to create your files, you can edit files directly from your form.
Note If you're editing embedded files, these steps change only one instance of the file. These steps do not change the original file. Also, if you embed a file more than once, you must change each instance of the embedded file.
Edit an unbound file
- Open the form that contains the unbound file in Design view by clicking Design
.
- Double-click the object.
- Access opens the program that was used to create the file if that program is available.
Note When you double-click a sound object or video object, Microsoft Access plays the object. To open these types of objects for editing, click the object, and then click the appropriate Object command on the Edit menu. For example, point to the Media Clip Object command, and then click the Open or Edit command on the submenu.
- Make the changes you want and then do one of the following:
- If you
are editing the object in place, click the form outside the unbound object frame. Do not click Exit on the File menu, or you
will exit Access.
- If you
are editing the object in a separate window, click Exit on the File menu of the parent program. If you
are prompted to update the file, click OK.
Edit a bound file on a form, report, or datasheet
- Open the form or report for viewing, or open the underlying table as a datasheet.
- Go to the record that contains the file that you want to edit, and then double-click the file.
Access opens the program that was used to create the file, if that program is available. The program may open in a separate window, or you may be able to edit the object in place.
Note When you double-click a sound file or video file, Microsoft Access plays the file. To open these types of files for editing, click the object and then click the appropriate Object command on the Edit menu. For example, point to the Media Clip Object command, and then click the Open or Edit command on the submenu.
- Make the changes that you want, and then do one of the following:
- If you
are editing in place on a form or report, click the form or report outside the bound object frame. If you click Exit on the File menu, you
will exit Access.
- If you
are editing in a separate window, click Exit on the File menu of the program. If you
are prompted to update the file, click OK.
Control how a file is activated for editing
- Open the form or report in Design view by clicking Design
.
- Right-click the object frame (bound or unbound), and then click Properties, or click
Properties on the Report Design toolbar
.
- Do one or more of the following:
You can specify whether you activate the file by double-clicking it or by selecting it. To do so, set the AutoActivate property. For more information, click the AutoActivate property box and press F1.
You can specify whether you edit the object in place or in a separate window. To do so, set the Verb property. For more information, click the Verb property box and press F1.
Make files read-only
To prevent users from editing your files, you can:
- Lock a bound or unbound object frame. This prevents users from starting the program that was used to create the file.
- Convert an unbound object frame to an image control, which also prevents users from starting the program that was used to create a file.
Convert an unbound object frame to an image control
- Open the form or report that contains the object frame in Design view by clicking Design
.
- Click the object frame.
- On the Format menu, point to Change To, and then click Image.
- Click Yes to confirm the change.
Access converts the unbound object frame to an image control. The object remains on the form, but you can't open the program that was used to create the file. If you used the frame to run a sound file, just the icon remains. If you used the frame to display a video file, just the first frame of the video remains, and you can't play the sound file or video file.
Update changed files
When you link to a file and later change that file, under certain conditions you can specify whether the changed file appears automatically or only when you request it. The following table lists the default behaviors for the object frames and describes how to change those behaviors.
| Control |
Default behavior |
To change the behavior |
| Bound object frame |
Changes appear when you open the form that contains the control. |
- Open the form containing the control in Design view by clicking Design
.
- Right-click the control and click Properties to display the property sheet for the control.
- Change the Update Options property from Automatic to Manual.
After you change the Update Options property, you must click the file or the control to see any changes. |
| Unbound object frame |
Displays the file as it was originally inserted, regardless of changes. |
- Open the form containing the control in Design view by clicking Design.
- Right-click the control and click Properties to display the property sheet for the control.
- Change the Locked property from Yes to No.
When you change the Locked property, your files are updated automatically when you open the form that contains the control.
|
Delete files
If you can add a file to a form or control, you can remove that file. You follow a different procedure for deleting unbound and bound files.
To delete unbound files
- Open the form that contains the unbound object frame in Design view by clicking Design
.
- Click the frame and press DELETE.
To delete bound files
- Open the form or report that contains the bound object frame in Form view (or open the underlying table as a datasheet).
- Find the record that you want to change, click the file (or the frame, if it is visible), and press DELETE.
Access removes the file from the frame and the file data from underlying record source, but the object frame remains on the form. To delete the frame, open the form or report in Design view, click the control, and press DELETE.
If you delete the object frame before you delete a file, that file still resides in the underlying table. If you want to remove the file data, open the table in Datasheet view and either delete the individual file or delete the OLE Object field that contains the file data.
Solving common display problems
Access may fail to render files from other programs for several reasons. The following table lists the most common reasons and describes how to fix the problem.
| Problem |
Cause |
Solution |
| "Package" appears in your OLE Object field instead of a specific file type (such as "Microsoft Excel worksheet"). |
The program used to create the original file is missing. |
Install the parent program for the type of file you want to see. You must then replace each instance of "Package" by embedding or linking to your files again. For information on embedding or linking, see the section Storing files in a database. |
| You see file names instead of the actual files. |
The program used to create the original file is missing. |
Install the parent program for the type of file you want to see. After you install the program, you must update the file data in the underlying table by embedding or linking to your files. For information on embedding or linking, see the section Storing files in a database. |
| You see an error message when you try to view linked files, or the linked file takes time to appear. |
The network has failed, the database or the original file has moved, or the original file is corrupted. |
Ensure that your network is up, and reestablish your network connection as needed. If the database or the original files were moved, update your links. For information about updating links, see the section Updating and editing links and files. If you think the original file may be corrupted, try opening the file in its parent program and resaving it. If the parent program can't open the file, you probably need to re-create the file. |
Back to top
|