ACC: How to Retrieve the Path for Linked OLE Objects (7.0/97) (170531)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q170531 Advanced: Requires expert coding, interoperability, and multiuser skills.
SUMMARY
Microsoft Access provides no way to determine the path for a linked OLE
object stored in a table. Therefore, the recommended approach is to create
an additional text field in the table and store the path to the linked OLE
object in that field.
This article demonstrates how to use a Visual Basic for Applications
procedure to retrieve the path for a linked OLE object from the object's
OLE header. However, it is possible that this procedure may not work in
some circumstances. Storing the path in a separate text field when you link
the OLE object is the best way to ensure that you will be able to retrieve
the path later.
This article assumes that you are familiar with Visual Basic for
Applications and with creating Microsoft Access applications using the
programming tools provided with Microsoft Access. For more information
about Visual Basic for Applications, please refer to your version of the
"Building Applications with Microsoft Access" manual.
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR
OWN RISK. Microsoft provides this code "as is" without warranty of any
kind, either express or implied, including but not limited to the implied
warranties of merchantability and/or fitness for a particular purpose.
REFERENCES
For more information about the StrConv () function, search the Help Index
for "StrConv."
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kbcode kbhowto KB170531 |
---|
|