dbTalk Databases Forums  

Opening files from a folder path stored in Access

comp.databases.ms-access comp.databases.ms-access


Discuss Opening files from a folder path stored in Access in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
musicloverlch
 
Posts: n/a

Default Opening files from a folder path stored in Access - 09-20-2011 , 02:22 PM






I know not to store files in Access, only the path to the file. I know
how to save the path into a text field.

So, can I create a button to Open that file from Access? These will be
like pdfs, Excel, TIFs.

I'm a little stuck. Any help is appreciated.

Reply With Quote
  #2  
Old   
David-W-Fenton
 
Posts: n/a

Default Re: Opening files from a folder path stored in Access - 09-20-2011 , 04:14 PM






musicloverlch <lhowey (AT) gmail (DOT) com> wrote in
news:d4d9a767-2d4a-4cb4-99eb-639da452c7cd (AT) f17g2000yqh (DOT) googlegroups.co
m:

Quote:
I know not to store files in Access, only the path to the file. I
know how to save the path into a text field.

So, can I create a button to Open that file from Access? These
will be like pdfs, Excel, TIFs.

I'm a little stuck. Any help is appreciated.
There's code for the Windows API for the FileOpen dialog on the
Access web:

http://access.mvps.org/access/api/api0001.htm

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
  #3  
Old   
Douglas J Steele
 
Posts: n/a

Default Re: Opening files from a folder path stored in Access - 09-20-2011 , 06:39 PM



If I understand you correctly, if the full path is stored in variable
strFile, you'd use

Application.FollowHyperlink strFile

"musicloverlch" wrote in message
news:d4d9a767-2d4a-4cb4-99eb-639da452c7cd (AT) f17g2000yqh (DOT) googlegroups.com...

I know not to store files in Access, only the path to the file. I know
how to save the path into a text field.

So, can I create a button to Open that file from Access? These will be
like pdfs, Excel, TIFs.

I'm a little stuck. Any help is appreciated.

Reply With Quote
  #4  
Old   
musicloverlch
 
Posts: n/a

Default Re: Opening files from a folder path stored in Access - 09-29-2011 , 03:05 PM



Thanks!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.