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

Database name and path

Status
Not open for further replies.

Nro

Programmer
May 15, 2001
337
CA
Hi all.

Is it possible to print the database name and path in the page footer of a report?

Thanks in advance

Nro
 
In a standard module
Public Function getNameAndPath() As String
getNameAndPath = CurrentDb.Name
End Function

in a calculated control
=getNameAndPath()
 
MajP, thanks for this quick answer. I found an other command

CurrentProject.FullName

Very usefull

Nro
 
yep, there are several ways to do that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top