M
Martin
Hello,
I have a simple bit of code to get the file name of the database:
*************Start Code*****************
Public Function CheckDatabaseName()
Dim CurrentFileName As String
CurrentFileName = Application.CurrentDb.Name
End Function
**************End Code******************
This file is on a network and the letter of the drive is always returned
with this code. I need the server name to be retuned not the drive letter
i.e. my J: drive is one of my shared drives but I would like the server name
which is Dstrt on xxxxxx (as you would see in Explorer).
Can anyone help? I have been looking for days now and have given up!
Thanks
Martin
I have a simple bit of code to get the file name of the database:
*************Start Code*****************
Public Function CheckDatabaseName()
Dim CurrentFileName As String
CurrentFileName = Application.CurrentDb.Name
End Function
**************End Code******************
This file is on a network and the letter of the drive is always returned
with this code. I need the server name to be retuned not the drive letter
i.e. my J: drive is one of my shared drives but I would like the server name
which is Dstrt on xxxxxx (as you would see in Explorer).
Can anyone help? I have been looking for days now and have given up!
Thanks
Martin