Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a file folder in Windows 7 1

Status
Not open for further replies.

deepsheep

Programmer
Sep 13, 2002
154
CA
I have an Access 2007 application that does a search and returns a file location. I want to be able to click a link or push a button and open the location, which contains a series of PDFs.

This command works great on my computer - Windows XP

Shell "C:\WINDOWS\explorer.exe """ & FileFolderLoc & "", vbNormalFocus

But on Windows 7 seems to open My Documents, which is definatly not the location it was told to open!

I know there's got to be a solution and it's probably pretty easy, but I just can't see it... My Googling skills are weak today!

Thanks!
 
Why not simply this ?
Code:
Application.FollowHyperlink FileFolderLoc

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Awesome! Worked great! I knew there had to be an easyish way to do it.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top