Share via

Automatically Refresh Linked Tables on a Database

Anonymous
2016-07-08T14:03:38+00:00

I have a database that is being used in the following manner:

  • There is a back end database in a shared drive folder.
  • Multiple users have been given a front end database which has tables that are linked to the back end database.

Here's the problem I've seemed to run into. The front end database has been in use for many months now. Apparently it stopped working for some users. I gave them a fresh copy of the front end that I refreshed the links on and it's working fine for them. I would like to know if there is a way that I can toss a macro or some VB code into the front end that will refresh the links when opened. Please note when I say VB code I'm not the best at this. Last VB class taken was 10+ years ago.

Thank you,

Robert

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2016-07-08T15:16:18+00:00

    You should link with UNC path. There have been reports about mapped drives getting disconnected (by design).

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2016-07-08T15:06:05+00:00

    They were getting the generic path not found error. Nothing at all moved on this. Any ideas?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-07-08T15:02:40+00:00

    "it stopped working for some users"

    In what sense?  What error did they get?

    Unless the location of the BE changed, relinking should do nothing.  Your issue is elsewhere I suspect, but we'd need more information.

    Was this answer helpful?

    0 comments No comments
  4. DBG 11,711 Reputation points Volunteer Moderator
    2016-07-08T15:02:03+00:00

    Hi Robert,

    I agree with Tom. Giving the users a fresh copy of the FE is a simple solution and will work 100% of the time. However, if you would like to pursue a VBA code solution in the future, you might consider trying JStreet's Access Relinker.

    Just my 2 cents...

    Was this answer helpful?

    0 comments No comments
  5. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2016-07-08T14:58:09+00:00

    If the BE location has not changed, there is no need for reattach code. Relinking tables in code to the same BE is a no-op. The application could have stopped working for any number of reasons. Much simpler to refresh the FE and they're on their way again.

    Was this answer helpful?

    0 comments No comments