list files in specific folder?

  • Thread starter Thread starter deBassMan via AccessMonster.com
  • Start date Start date
D

deBassMan via AccessMonster.com

HI all

Access2K/2003, Win XP Pro

I need to be able to:

list all files in a spcific folder.(I'd like to perhaps send a folder name
as an argument)
The files should be 'clickable' and open with their associated app.
The user should not be able to navigate away from the specified foder.

all ideas gratefully received

cheers
 
See:
List files recursively
at:
http://allenbrowne.com/ser-59.html

The code shows you how to list the files with options for:
- starting folder (path);
- file spec (e.g. only show zip files);
- subfolders too if you wish.
And it can load them into a list box.

From there, you could use FollowHyperlink to open the files, e.g. in the
double-click event of the list box.

Or, if you want something more powerful, use ShellExecute to open them:
http://www.mvps.org/access/api/api0018.htm
 
Thanks Allen

I've cracked it now

cheers



Allen said:
See:
List files recursively
at:
http://allenbrowne.com/ser-59.html

The code shows you how to list the files with options for:
- starting folder (path);
- file spec (e.g. only show zip files);
- subfolders too if you wish.
And it can load them into a list box.

From there, you could use FollowHyperlink to open the files, e.g. in the
double-click event of the list box.

Or, if you want something more powerful, use ShellExecute to open them:
http://www.mvps.org/access/api/api0018.htm
Access2K/2003, Win XP Pro
[quoted text clipped - 4 lines]
The files should be 'clickable' and open with their associated app.
The user should not be able to navigate away from the specified foder.
 

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