Share via

Linking tables at runtime

Anonymous
2016-07-19T20:33:36+00:00

Since 2010 workgroup permissions has been removed, I would like to at least password protect the back end data file, so someone with the full version of access can't simply click on the file and open it.

So I thought maybe in my startup module I would create the table links. Would this compromise the startup time of my app? And would there be any other complications?

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

7 answers

Sort by: Most helpful
  1. Anonymous
    2016-07-20T10:35:21+00:00

    I've used this:

    http://www.fabalou.com/Access/Modules/refreshtables.asp

    That code simply relinks any table that is already linked, with the database pathname you supply. It's simple but effective. I'd make some changes - for example, declare your variables fully qualified instead of simply the object name - but by and large it will work.

    If you need more control over the situation then the JStreet process would give you that control.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-07-20T05:47:31+00:00

    Thank you. That is way over my head...If I don't understand it, I would be afraid to use it. :-(

    I found this example that seems pretty straightforward, but where do I insert the pwd of the sourceDB?

    DoCmd.TransferDatabase acLink, "Microsoft Access", sourcedb, acTable, strSourceTbl, strDestinationTbl

    Also, since all tables in the back end will be linked, is there a way to loop the statement or use a For each kind of thing to link all tables in the back end without writing a docmd.transferdatabase line for each table name?

    Was this answer helpful?

    0 comments No comments
  3. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2016-07-20T01:02:01+00:00

    Was this answer helpful?

    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. HansV 462.6K Reputation points
    2016-07-19T20:39:20+00:00

    (Re)linking tables is quite fast in my experience, so I don't foresee a noticeable impact on startup.

    Was this answer helpful?

    0 comments No comments