I am using the Common Dialog API (http://support.microsoft.com/kb/888695) in Access 2003 to select a file.
The following part of the code dictates the initial directory opened:
Obviously, that opens in C:\, which I don't want. I want to be able to open a subdirectory of My Documents by default. However, the database has to work on several stand-alone PCs with different My Documents locations. The directory name within My Documents is always the same.
If I delete the line altogether, it seems to remember the last directory opened, but that's not an ideal solution. Is there something I can put that will go to My Documents regardless of its actual location?
Thanks in advance for any help!
The following part of the code dictates the initial directory opened:
Code:
Dim OpenFile As OPENFILENAME
OpenFile.lpstrInitialDir = "C:\"
Obviously, that opens in C:\, which I don't want. I want to be able to open a subdirectory of My Documents by default. However, the database has to work on several stand-alone PCs with different My Documents locations. The directory name within My Documents is always the same.
If I delete the line altogether, it seems to remember the last directory opened, but that's not an ideal solution. Is there something I can put that will go to My Documents regardless of its actual location?
Thanks in advance for any help!