View Full Version : is it possible just to disable default menubar completely when open by user?


gino
05-19-2000, 11:25 AM
can i just disable default menu bar? i can't seem to figure this out. i just don't want no menu bars open when user access my database through network.

R. Hicks
05-19-2000, 11:45 AM
Use the following command to disable the default menu.

CommandBars.Item(32).Enabled = False

You will need to figure where you need to run this line.

HTH
RDH

gino
05-19-2000, 11:59 AM
nice code...anymore security tips? thanks

R. Hicks
05-19-2000, 12:20 PM
Gino I can give you code to disable and enable the shift key at start up if you want it. This will help some, but if you do not use user level security, the data in the database will not be secure. Anyone could open a new empty database, then import or link to the database, then alter, delete or do anything else they wish to the data. This is something you need to think about. If the data in your app is sensitive, you need to enable Access user level security. But if you are only wanting to keep the user from editing forms and such, you can get by with what you are trying to do. But user level security will do it all.

HTH
RDH

gino
05-19-2000, 12:40 PM
i notice the code has a number in it

CommandBars.Item(32).Enabled = False

can you tell me how this code works because i was wondering if i can disable other menubars too! thanks.

[This message has been edited by gino (edited 05-19-2000).]