Access Security

garyd1234

Board Regular
Joined
Apr 17, 2003
Messages
103
Hi,
I have a secure database .mdb that has some groups and users set up. When I log in as the lowest user (least permissions), they can still hit Alt F11 and go into the code window. They can change something but it won't let them save it. First of all, does anyone know why it even lets a user like that into the code window and can I stop it- diable the Alt F11 keys. Secondly, at times if the user did go into the code window, try to change something then close the code window and try to exit the app normally with the X or with my Exit button, it gives an Onclick event error and a series of messages saying you don't have exclusive access to the db and won't let the user leave the app. Any ideas why and how to fix it? Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

Try this out:-

First, run this code in your database:-

Sub AddProp()
Dim prop As DAO.Property

Set prop = CurrentDb.CreateProperty("allowbypasskey", dbBoolean, False)
CurrentDb.Properties.Append prop

End Sub

You only need to run it once, you can delete it after you've run it.

Secondly, go into Tools, Startup and untick the Show Database Window and Use Access Special Keys (and probably the menu as well).

Go into the VB editor and run this:-

Sub Dis()
CurrentDb.Properties("allowbypasskey") = False
End Sub


I think that's it. If it doesn't work as expected then please post back.
 
Upvote 0

Forum statistics

Threads
1,221,531
Messages
6,160,366
Members
451,642
Latest member
mirofa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top