Read a Directory

G

Guest

Good day,

Can anyone help me do the following?

I would like to have an Access Program read the Directory on a drive and the
contents of a folder through a list box.

Then on Dbl click to open the file.

Drive = P:Drive
Folder = Packaging
contents are in PDF format

Much appreciated
 
A

Allen Browne

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

The article explains how to set up a list box to show the files.
And you can optionally filter list subfolders as well, and filter to just
PDFs.

To open the selected file in the DblClick event of the listbox, use:
FollowHyperlink Me.lstFileList
 
G

Guest

Works Perfectly,

Thanks Allen


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

The article explains how to set up a list box to show the files.
And you can optionally filter list subfolders as well, and filter to just
PDFs.

To open the selected file in the DblClick event of the listbox, use:
FollowHyperlink Me.lstFileList
 

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

Top