R
Ryan Clair
I have 2 different back-end databases I use, one for when I'm testing
and one for production. I'm also using a homegrown login. When I log
in, I'd like a window to appear that list which files I'm linked to at
that time (mostly because I just want to make sure I'm either in
production or in testing environment without having to check link
table manager--unfortunately I sometimes forget.)
I've seen this code but when I step into it, the value of tdf is
blank, even though it goes through it as if it isn't.
Sub ShowLinkPath()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Set db = CurrentDb
For Each tdf In db.TableDefs
Debug.Print tdf.Connect
Next tdf
Set tdf = Nothing
Set db = Nothing
End Sub
Being lazy just means being more efficient right? Thanks in
advance.
and one for production. I'm also using a homegrown login. When I log
in, I'd like a window to appear that list which files I'm linked to at
that time (mostly because I just want to make sure I'm either in
production or in testing environment without having to check link
table manager--unfortunately I sometimes forget.)
I've seen this code but when I step into it, the value of tdf is
blank, even though it goes through it as if it isn't.
Sub ShowLinkPath()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Set db = CurrentDb
For Each tdf In db.TableDefs
Debug.Print tdf.Connect
Next tdf
Set tdf = Nothing
Set db = Nothing
End Sub
Being lazy just means being more efficient right? Thanks in
advance.