Current Directory

R

Randy

I am looking for a VBA function for Access 2000 that will return my
current database directory. The GetCurrentDirectory API call that I
have found returns my current WORKING directory (I think) - it always
returns C:\Doc & Set\User\My Docs - which is not where I am running my
dB from.

Any suggetsions?
 
G

George Nicholson

Access XP or higher: CurrentProject.Path (returns directory)
Earlier versions to current versions (using DAO): CurrentDB.Name (returns
full directory\filename path)
 
Top