How to retrive db filename

noccy

Registered User.
Local time
Today, 08:55
Joined
Aug 19, 2003
Messages
67
Hello!

How can I retrive the database filename (and path) of the current database?

tnx

noccy
 
tnx m8
 
If you want the path and the name of the current database, then use:
CurrentDb.Name

If you want just the name of the current database, then use:
Dir(CurrentDb.Name)

Or if you only want the path to the current database, then use:
Left(CurrentDb.Name,Len(CurrentDb.Name)-Len(Dir(CurrentDb.Name)))

HTH
 

Users who are viewing this thread

Back
Top Bottom