Open any document type from Access 2K2

L

lukebe

My databases can contain attachments such as PDF, doc, xls, jpg. At
the moment I just open these within Internet Explorer but I would
really prefer to open them in the associated application directly.
I could have a big IF block to create an instance of the application
with VBA but surely there is a better way.
I'm comfortable with API calls, etc so any method is appreciated.

Thankyou,
Luke
 
A

Albert D. Kallal

To launch any document from ms-access, simply go:

application.FollowHyperlink "path name to document"
 
Top