On Wed, 16 Jul 2008 17:53:12 -0700 (PDT), Wayne <cq*******@volcanomail.com>
wrote:
>I'm using the following to get the FE and BE database paths.
FEPath = DBEngine.Workspaces(0).Databases(0).Name
BEPath = Mid([DBEngine].[Workspaces](0).[Databases](0).[TableDefs]
("Admin").[Connect], 11)
These work well but they only retrieve the Drive Letter paths. Is
there a simple way to retrieve the UNC paths?
It depends on how the table was linked initially.
If the table was linked using a drive letter, the connect string will return the
drive letter.
If the table was linked using a UNC path, the connect string will return the UNC
path.
There is no inbuilt conversion function, it is just a text string.
Wayne Gillespie
Gosford NSW Australia