title: GetOpenFilename api call in Windows 7 won't allow direct access to My Documents
body: <p>In many of my Access (2002) programs I use the GetOpenFileNameA and GetSaveFileNameA functions from comdlg32.dll.  I often set the initial directory to the user's My Documents folder (using calls to SHGetSpecialFolderLocation and SHGetPathFromIDListA from shell32).  This all works fine under Windows XP.</p>
  
  <p>However, I recently switched to Windows 7 as my development environment and have been getting the following error message:</p>
  
  <blockquote>
    <p>You can’t open this location using
    this program.  Please try a different
    location.</p>
  </blockquote>
  
  <p>The function I use to get the My Documents location is returning the correct folder.  However, even if I hard code that directory location into the GetOpenFileNameA call, I still get the error.</p>
  
  <p>I came across this post: <a href="http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/thread/3391f1dd-25b0-4102-9d5c-58309cc72c9d" rel="nofollow noreferrer">http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/thread/3391f1dd-25b0-4102-9d5c-58309cc72c9d</a> but, even adapting it to work with Access instead of Excel, I had no luck.</p>
  
  <p><strike><strong>EDIT:</strong> Suddenly this is no longer a problem for me.  I suspect a windows update went out addressing this issue.  Does anyone know if that's true or not?</strike></p>
  
  <p><strong>EDIT:</strong> It turns out this is still a problem.  Also, in case it helps in the troubleshooting I have found that I get this error message for any of the special folder locations (My Music, My Documents, etc).  Also, if I change the location of the My Music folder to, say, C:\Test then I get this message when I try to open the folder C:\Test, while the folder C:\Users\Mike\Music (the original My Music location) opens without a hitch.</p>