Get path and file name

R

Robin

I would like to set a path and file name in a text box by
clicking on the name of a file in a list of directories
and files as is seen when using 'Open file' or in
Microsoft Explorer.

How can I get the list and how can I transfer the path and
file name to the text box? Thank you.
 
D

Dirk Goldgar

Robin said:
I would like to set a path and file name in a text box by
clicking on the name of a file in a list of directories
and files as is seen when using 'Open file' or in
Microsoft Explorer.

How can I get the list and how can I transfer the path and
file name to the text box? Thank you.

There are various ways to do this, but the most reliable is to call the
Windows API directly to display the "Open File" dialog. Code for that,
with an example, is posted here:

www.mvps.org/access/api/api0001.htm
 

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