Get Current DB's path

TKnight

Registered User.
Local time
Today, 00:15
Joined
Jan 28, 2003
Messages
181
Does anyone know how I can reference the pathway of the database that i'm working in...

The help mentions "object.path" but to use it the object has to be a reference to a file or folder etc. is it possible to get the full pathway without using this method?
Thanks, Tom.
 
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
 
lol

The exact same question appears on this page in this forum. Try searching beforehand. :cool:
 
Thanks guy's!
Mile-O-Phile, my deepest apologies! 9 times out of 10 i search the help then the forums before posting, guess i'm going to have to make it 10/10...
 

Users who are viewing this thread

Back
Top Bottom