aspiringprog
MIS
Hi all,
Right now, I have this code in my VBA module. One of the columns in my tables is the name of the database.
Public Function CurrDB() As String
On Error Resume Next
Dim dbs As Database
Set dbs = CurrentDb
CurrDB = dbs.Name
End Function
But instead of the name of the database, I need the name of the database to which the linked tables are linked to. Can anyone tell me how to get that?
Thanks
Right now, I have this code in my VBA module. One of the columns in my tables is the name of the database.
Public Function CurrDB() As String
On Error Resume Next
Dim dbs As Database
Set dbs = CurrentDb
CurrDB = dbs.Name
End Function
But instead of the name of the database, I need the name of the database to which the linked tables are linked to. Can anyone tell me how to get that?
Thanks