View Full Version : How can I display a FileOpen dialog box from a MS-Access form?


nansk
09-24-2001, 07:36 AM
I would like to store list of file names and paths in a text/hyperlink field in an MS-Access database.
I have created a form with VBA code to maintain the records in the table.

One way to get the filename would be to display a FileOpen dialog box to the user and get the complete file name with path.

This is possible in MS-Excel using the function:
filename = Application.GetOpenFileName ()

Is there any way I can do the same in MS-Access?

Fornatian
09-24-2001, 10:28 AM
Download the database compactor posted here:
http://www3.sympatico.ca/qaissuper/Index.html

That has the function to open a FileOpen dialog box and return the string path and is posted in mdb format so you can see how it works.

Ian

rich.barry
09-24-2001, 02:25 PM
Go here

ftp://www.athree.com/pub/candace/access_downloads_html.htm

and download the Windows Common Dialogs.

MikeAngelastro
09-26-2001, 07:36 PM
Buy the book "Access 2000 Developers Handbook". The accompanying CD contains a class that can be used by anyone with Access. I just used it and it works very well. The Common Dialog Box Control is problematic. It does not come with Access except for the developer version. Besides the books is very well regarded and is about 1,500 pages.

nansk
09-29-2001, 07:25 PM
Hi Guys,

Thanxalot for your helpful replies.

I have used the Microsoft Common Dialog ActiveX control to solve my problem.

Thanx again.
NansK