find directory of mdb file

ecawilkinson

Registered User.
Local time
Today, 07:41
Joined
Jan 25, 2005
Messages
112
hi,

can anyone tell me how to find the directory of the current mdb in VBA. I do not mean the default database directory but the directory in which the actual mdb file for the current database resides in.

Thank you,
Chris
 
If you mean the current database, try

Currentproject.Path

If you mean the path to the backend database, you can find lot of info through using
Code:
CurrentDB.TableDefs("NameOfTableInBackend").Connect

but, you'd need to strip off some excess info
 
Thanks. CurrentProject.path was waht I needed. I knew it was somewhere.
 

Users who are viewing this thread

Back
Top Bottom