Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2007

Tip: Looking for answers? Try searching our database.

Open any document type from Access 2K2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lukebe - 30 May 2007 06:53 GMT
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
Albert D. Kallal - 30 May 2007 08:15 GMT
To launch any document from ms-access, simply go:

application.FollowHyperlink "path name to document"

Signature

Albert D. Kallal    (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com

Peter Hibbs - 30 May 2007 09:39 GMT
Luke

You can also use the ShellExecute function, see
http://www.mvps.org/access/api/api0018.htm
for details.

HTH

Peter Hibbs.

>My databases can contain attachments such as PDF, doc, xls, jpg. At
>the moment I just open these within Internet Explorer but I would
[quoted text clipped - 5 lines]
>Thankyou,
>Luke
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.