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

Determine the default folder of database

Status
Not open for further replies.

marle35

Programmer
Jul 17, 2007
36
Is there a way to programmatically determine either the "default folder" or the folder path that the database file resides in?
 
What about CurrentProject.Path ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
strDBPath = CurrentDb.Name
DataBaseName = Dir(strDBPath)
CurrentFolder = Left(strDBPath, InStr(strDBPath, DataBaseName) - 1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top