Open File

  • Thread starter Thread starter Igor
  • Start date Start date
I

Igor

Hi,
I have text field that I enter filename to it and command button that
pushing it has to open this file
with assosiating program: *.doc with Word, *.pdf with Acrobat etc.
Can someone explain how to accomplish this?
Thanks
 
Igor said:
Hi,
I have text field that I enter filename to it and command button that
pushing it has to open this file
with assosiating program: *.doc with Word, *.pdf with Acrobat etc.
Can someone explain how to accomplish this?
Thanks

For most purposes you can use the FollowHyperlink method; e.g.,

Application.FollowHyperlink Me!txtFileName

(where :"txtFileName" is the name of the control on the form that holds
the name-- with folder path if necessary -- of the file to be opened).
 
Thanks Dirk

Dirk Goldgar said:
For most purposes you can use the FollowHyperlink method; e.g.,

Application.FollowHyperlink Me!txtFileName

(where :"txtFileName" is the name of the control on the form that holds
the name-- with folder path if necessary -- of the file to be opened).

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

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

Back
Top