Share via

MS Access-User Can Replace My AutoExec Macro

Anonymous
2018-06-13T15:28:03+00:00

I cannot figure out how to prevent someone with the password to my Access database from importing their own AutoExec macro and replacing the one I have already included.  Is there a way to stop this? (I am using Access 2016)

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

Answer accepted by question author

Anonymous
2018-06-14T00:34:28+00:00

I would suggest you drop the AutoExec, and make a “simple” tiny form that has no controls etc. and specify that form as start-up. That form can then run the same macro code, or some VBA code, and then when done can launch the start-up form.

So you don’t necessary require an AutoExec macro, and you can/could use a “dummy” form for this purpose.

Regards,

Albert D. Kallal (Access MVP, 2003-2017)

Edmonton, Alberta Canada

Was this answer helpful?

0 comments No comments

8 additional answers

Sort by: Most helpful
  1. ScottGem 68,830 Reputation points Volunteer Moderator
    2018-06-14T11:49:14+00:00

    Hmm, Who are your users? If these are corporate users on a LAN then monkeying with a corporate app is a serious offense.

    What does your Autoexec macro do? Why is someone trying to bypass it?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-06-13T21:17:10+00:00

    Review http://www.devhut.net/2016/09/01/securing-your-ms-access-database-front-end/

    If you use your own custom ribbon, hide the nav pane, disable the shift bypass,... And distribute it as a compiled accde, you should have any real issues.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-06-13T20:58:02+00:00

    I did make an accde copy, but found that macros can still be imported in and override any pre-existing AutoExec.

    Was this answer helpful?

    0 comments No comments
  4. ScottGem 68,830 Reputation points Volunteer Moderator
    2018-06-13T19:22:49+00:00

    Why not distribute it as a accde, then they can't make design changes.

    Was this answer helpful?

    0 comments No comments