Prevent enabling of shift bypass - Access 2010

前端 未结 2 1200
野的像风
野的像风 2020-11-30 13:32

I am trying to prevent database users from being able to view the linked tables in the navigation pane of an Access 2010 database. I have hidden the pane and disabled the F1

2条回答
  •  一生所求
    2020-11-30 14:00

    Of course using SQL server for the back end will not change this issue. (so suggesting's to use SQL server will NOT fix this issue). If users can grab + see the data from SQL server, then in Excel, or via linked tables in Access would not change this security issue. What you can do however is in your Access startup code check if shift by-pass has been enabled and then disable it, and then exit the database. (it requires a re-start to take effect). So even if users disabled the shift key, your startup would re-enable. And using a compiled (accde) will prevent users modifying any code.

    So simply check the status of the shift key on application startup, and if its been enabled, simply use your referenced code to disable the shift key and exit.

    To be fair, the above is not 100% solid, since in theory your startup code would not run if the shift key was enabled. Another tip would be to always provide users with a shortcut to use (and that shortcut would include the /runtime switch which also disables shift key regardless of setting - so this would give "somewhat" an extra layer here.

提交回复
热议问题