views:

787

answers:

1

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‹ is highly appreciated

A: 

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//:...).

Jeff O
Er, Internet Explorer != Explorer.
David-W-Fenton
My Internet Explorer is capable of accessing files on my hard drive just like Explorer.
Jeff O
XP and before had this feature, but they really got rid of that.
Daniel A. White
We're still running XP at the office. Didn't try it at home.
Jeff O
WebBrowser0.Navigate works for me with Access 2007 on Windows 7 RTM. However, I couldn't make WebBrowser0.Navigate accept "C:\" as its target. (I had to use "file:///C:/") But the Navigate2 method accepted the target as you described: WebBrowser0.Navigate2 "C:\"
HansUp
thanks, i got it to work this way. i had to use browser0.object.navigate though
knittl