P
Peter Hibbs
Hi All
Access 2003.
I have a list box which lists the contents of a folder on the hard
disk, i.e. PDF files, Excel files, Word files, Text files and JPeg
files. I want the user to be able to double click on a filename in the
list which will then run the associated program and display the
relevant document on screen.
I could write some VBA code which would identify the program type from
the extension code, run the program and open the file using the Shell
function but I vaguely remember someone in this forum, within the last
few months, provided a method to do this in a simple way.
Unfortunately I can't find it now, or perhaps I was mistaken. Has
anyone got any ideas or can point me at a suitable Web site.
Thanks.
Peter Hibbs.
Access 2003.
I have a list box which lists the contents of a folder on the hard
disk, i.e. PDF files, Excel files, Word files, Text files and JPeg
files. I want the user to be able to double click on a filename in the
list which will then run the associated program and display the
relevant document on screen.
I could write some VBA code which would identify the program type from
the extension code, run the program and open the file using the Shell
function but I vaguely remember someone in this forum, within the last
few months, provided a method to do this in a simple way.
Unfortunately I can't find it now, or perhaps I was mistaken. Has
anyone got any ideas or can point me at a suitable Web site.
Thanks.
Peter Hibbs.