ACC: Changes to Linked Object Do Not Update Source Properties

Last reviewed: May 30, 1997
Article ID: Q141884
The information in this article applies to:
  • Microsoft Access versions 7.0, 97

SYMPTOMS

If you change the source of a linked object on a form using the Links dialog box, the SourceDoc and SourceItem properties for that object are not updated although the object itself updates correctly.

CAUSE

The SourceDoc and SourceItem properties are not designed to reflect changes to an object's current source. These properties display their source when you create new objects. When you update existing objects through the user interface or programmatically through Visual Basic for Applications, the SourceDoc and SourceItem properties will not reflect the fact that the object has been changed to point to a file other than the original source.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb and create a new form not based on any table or query.

  2. On the Insert menu, click Object.

  3. In the Insert Object dialog box, click Create From File.

  4. Click the Browse button, click to select any bitmap file in the Windows main folder, and then click Open (or OK in Microsoft Access 7.0).

  5. Click to select the Link check box, and then click OK.

  6. On the Edit menu, click OLE/DDE Links.

  7. Click to select the bitmap listed in the Links box and click the Change Source button.

  8. In the Change Source dialog box, select a different bitmap file from the Windows main folder (a bitmap file other than the file you originally selected), and then click Open (or OK in Microsoft Access 7.0).

  9. Click Close. Note that the linked object on the form is updated. When you view the object's properties, however, note that the SourceItem property is blank and that the SourceDoc property continues to point to the bitmap file that you originally selected.

REFERENCES

For more information about links, search the Help Index for "Linked Objects, Creating and Inserting," and then "Add a picture or other object to a form or report," or ask the Microsoft Access 97 Office Assistant.

For more information about SourceDoc, search the Help Index for "SourceDoc Property," or ask the Microsoft Access 97 Office Assistant.


Keywords : FmsOthr kbusage
Version : 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.