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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the File Browser popup from within Access

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
When you click the Database open button on the toolbar in Access it pops up a file browser. I would like to use that and set a default path first.

Does anyone know the properties or enumerated constant to use to get at the Access default subdirectory for new files, etc?

Thanks in advance for any help!
 


On the Tools menu, click Options, and then click the General tab.


In the Default database folder box, type the path for the folder you want to display as the default working folder.
For example, type c:\work.


 
You can use CurDir to return the current working directory (which is what you default to when you click the database open button). Also, you can use ChDir to change the current working directory, so this is how you can set the default path, i.e
Code:
ChDir "C:\Temp"

HTH. [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top