ACC97: Unbound OLE Object Frame on Report Not Updated Properly
ID: Q183277
|
The information in this article applies to:
SYMPTOMS
Novice: Requires knowledge of the user interface on single-user computers.
When a linked unbound object frame exists in a report, changes in the data
or content of its source document are not displayed correctly on the
report. However, if after each change in the source document, you open the
report in Design view first and then switch to Print Preview, the data or
content of the source document is displayed correctly.
RESOLUTION
If you add the linked unbound object frame to a form first, set its Enabled
property to Yes and its Locked property to No, and then embed that form on
the report, changes to the control's source document do appear as expected
in the report.
The following steps demonstrate how to implement this workaround.
- Start Microsoft Excel and open a new workbook.
- In cells A1:A3, enter the numbers 1, 2 and 3, respectively.
- Save and close the workbook, but leave Microsoft Excel open.
- Open a new database in Microsoft Access.
- Create a form in Design View and do not base it on any table or query.
- Add an unbound object frame to the detail section of the form.
- In the Insert Object dialog box, click Create From File and select the
Link check box; then click Browse.
- In the Browse dialog box, select the file that you saved in step 3.
Click Open.
- In the Insert Object dialog box, click OK.
- On the View menu, click Properties to open the property sheet of the
unbound object frame; click the Data tab.
- Change the Enabled property to Yes and the Locked property to No.
- Save the form as frmLinkFix and close it.
- Create a new report in Design View and don't base it on any table or
query.
- Press F11 and position the windows so that both the Database window and
the report are visible.
- Click the Forms tab in the Database window. Select the frmLinkFix
form but do not open it.
- Drag the frmLinkFix form to the report. Note that it is now a subform
on the report.
- Save the report as rptLinkFix and close it.
- In Microsoft Excel, open the file you created in step 3 and change the
values of cells A1:A3.
- Close the workbook, but leave Microsoft Excel open.
- Open the rptLinkFix report in Print Preview. Note that the three values
in the object frame match those currently in the workbook.
- Close the rptLinkFix report.
- Repeat steps 18 through 21 several times. Note that the values in the
object frame always match the current values in the workbook.
MORE INFORMATION
Steps to Reproduce Behavior
- Follow steps 1 through 4 in the "Resolution" section earlier in this
article.
- Create a report in Design View and do not base it on any table or
query.
- Add an unbound object frame to the report.
- In the Insert Object dialog box, click Create From File and select
the Link check box; then click Browse.
- In the Browse dialog box, select the file that you saved in Microsoft
Excel. Click Open.
- In the Insert Object dialog box, click OK.
- Switch to Print Preview and note that the three values in the object
frame match the data that you entered in the workbook in step 2 of the
"Resolution" section.
- Save and close the report as rptLinkTest.
- Open the workbook in Microsoft Excel and change the values in cells
A1:A3.
- Save and close the workbook, but leave Microsoft Excel open.
- Open the rptLinkTest report in Print Preview. Note that the three
values in the object frame do not match those that currently exist in
the workbook.
- Switch to Design View and immediately back to Print Preview. Note that
the values in the unbound object frame now match those in the workbook.
- Repeat steps 9 through 11. Note that the values in the object frame
match the values that currently exist in the workbook.
- Close the rptLinkTest report and reopen it in Print Preview. Note that
the values in the object frame do not match those in the workbook.
Additional query words:
different not the same
Keywords : kbdta IntpOle
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 28, 1999