Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Different File Types from Form? 1

Status
Not open for further replies.

Maillme

Technical User
Mar 11, 2003
186
NL
Hi there,

I have some code on my form which i got from this very helpful topic here:


However, my requirement is now to open different file types. E.g. there may be a word document in one record (which works fine) and a visio document in my next record (this doesn'twork as it tries to open this in visio.

Can anyone advise on any code changes i can do to allow this? And as simple as you can explain please as I'm no coder!

Many thanks for any help,


Neil
 
What about the Application.FollowHyperlink method ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hi PHV,

how would i use this on my form?

I have the filepath held in a txt box (file_path).

many thanks,
Neil
 
Like this:
Code:
Application.FollowHyperlink Me!file_path

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Oh Deary Me, As simple as that!

Many thanks for your help!!

Neil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top