since the the shift key is disabled, I have no option to refresh the links.
Sounds like you will have to incorporate a folder dialog to allow the user to navigate to their db folder for the first time. Then you use that path to relink the tables in code.
OR set things up so that Users isn't involved; e.g. C:\Databases\MyNiftyDatabase - but obviously you'd have to convince the end user to go along with that location, which they won't like if it's a shared pc.
OR you can get their user name on first use and concatenate it into the be path, but this will only work if they place it where you told them to; i.e. what follows their login name must be what you allowed for. Then code to relink the tables.
I think the folder dialog is the way to go, unless you got real fancy and are using an actual installer. In that case, the path for the db is known by the installer.
Last edited by Micron; 10-05-2019 at 11:54 PM.
Reason: correction
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.