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

Determining Filepath

Status
Not open for further replies.

bulletproof1979

Programmer
Jan 15, 2003
1
GB
I'm fairly new to VBA coding so this is probably a very straightforward one, but does anyone know how to get a database display the location it is currently running from?
 
Ok... the following line will give you the entire path (including the filename) of the database that you are running:

currentdb.name

Then, you can parse out the filename, and you ahve the folder (directory) that the database is in.

GComyn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top