M
Martin
I am trying to write some code that tells me the server name and file
extension of the current database. The code is as follows:
Dim CurrentFileName As String
CurrentFileName = Application.CurrentDb.Name
MsgBox CurrentFileName
If the file is located on my T drive for instance then this code shows me
T:\....
I need it to show me the actual server name. Is there a way of formatting
the response or do I need different code?
Thanks,
Martin
extension of the current database. The code is as follows:
Dim CurrentFileName As String
CurrentFileName = Application.CurrentDb.Name
MsgBox CurrentFileName
If the file is located on my T drive for instance then this code shows me
T:\....
I need it to show me the actual server name. Is there a way of formatting
the response or do I need different code?
Thanks,
Martin