Hello. We're using Access 365. I have an 'autoexec' function that, as soon as the database is opened, checks the user name against a user/password table in the database for security purposes. I just found a hole. If the user does not have macros enabled, the autoexex function errors/stops with SingleStep error 2001. A dialog box opens and if the user simply clicks the 'Stop All Macros' button, the database remains open to the user, so the user/password table is never checked.
Is there a way to trap the 'Stop All Macros' button click? Would 'On error handling' work? How can I force the database to close if this happens; i.e., users macros are not enabled.
Thanks.
Is there a way to trap the 'Stop All Macros' button click? Would 'On error handling' work? How can I force the database to close if this happens; i.e., users macros are not enabled.
Thanks.
Last edited: