How to extract file names/path from OLE Objects

D

Don

Hi,

I have a database that stores OLE Objects. That is, the
field 'WordFile' is of type "OLE Object" and it contains a
link to an MS word file. The database is becoming very
large due to all the links. I would like to replace these
links with a field containing the file name/path and some
code to spawn Word. (Which I have developed and seems to
work.) My problem is "extracting" the file name from the
OLE Link. I have attempted to access the object stored in
the 'WordFile' field but can't seem to get at the Word
properties, etc. I can activate the object (Me!
WordFile.Action = acOLEActivate) but that is as far as I
can get.

Thanks,
Don
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top