Search code examples
ms-accesswidgetexplorerwindows-explorer

Embed Windows Explorer inside an MS Access form


Is there a widget to embed an explorer-like view inside an ms access form?

I have a folder with the name of the primary key, which holds documents (.doc, .xls) for that dataset (it’s an employees table)

Currently I have a button which opens an explorer window, but having it embedded would be really nice.

Any help, link, similar question, and even a ›no, there isn’t‹ answer is highly appreciated


Solution

  • You can use the OLE object Microsoft Web Browser on a form. Since Internet Explorer is capable of viewing files on your computer other than web pages.

    Example Code: WebBrowser0.Navigate2 ("C:\") would go to this Folder

    Edit: per @hans use either Navigate2 or the alternate systax (file//:...).