Unviersal link to table (1 Viewer)

dlugirapfr

Registered User.
Local time
Today, 01:39
Joined
Nov 22, 2012
Messages
68
Hi,
is it possible to make short link to table in different access database ?
What I mean? Now when I connect table from different database these table has full link e.g. “c:\database\test.ascdbb” When I move this database to another folder it doesn’t work. Is it possible to create link to table I the same folder ? When I move folder with whole databases it will work in another localization.
Thank you for replay.
 

isladogs

MVP / VIP
Local time
Today, 00:39
Joined
Jan 14, 2017
Messages
18,209
This code will give you the relative path
Code:
CurrentProject.Path & "\database.name.accdb"
However you can't use that in the linked table manager.
You'll need to relink using code.
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 19:39
Joined
Feb 19, 2002
Messages
43,233
Here's a database with a form that shows a method for letting the users do their own relinking without using the linked tables manager.
 

Attachments

  • RelinkMultipleBEwithValidTableTest.zip
    97.8 KB · Views: 108

dlugirapfr

Registered User.
Local time
Today, 01:39
Joined
Nov 22, 2012
Messages
68
Thank you for replays. Now I know what I have to looking for.
 

Users who are viewing this thread

Top Bottom