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

What is the function that will return the current path of the database 3

Status
Not open for further replies.

maupiti

Programmer
Oct 27, 2003
240
US
What is the function that will return the current path of the database that you are working on such as
my_database.mdb

The function CurDir will only return the path that was set in tools --> Options --> General TAB, not the path of the database that is currently opened.

MyPath = CurDir

 
For 97+
[tt]currentdb.name[/tt]

for 2000+
[tt]currentproject.fullname[/tt]

to only get the path, not the db name
[tt]currentprjoject.path[/tt]

To get only the path for the currentdb..., you'll need to strip of the string after the last "\".

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top