ShaneMan
Registered User.
- Local time
- Today, 02:04
- Joined
- May 9, 2005
- Messages
- 1,224
I started a thread on another website but haven't gotten any takers,yet, so I thought I would post the same question here to see if someone wants to take a stab at my question.
I found this code on UA (below), sometime back, that allows me to disable all Menus and Toolbars and the function does work. I have a separate cmdButton that will set them all back to 'True' for when I am working in design view, but it only sets them back to 'True' on the particular db I am working on. If I open a separate db (like looking at someone's attachment here) I always have to add a cmdButton and run the function to set all Menus and Toolbars to 'True'. Why is that? It would seem to me if I click the button in any db to set them back to 'True' then that would affect every db.
TIA,
Shane
Code:
' Disable all Menus and Toolbars
Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i
I found this code on UA (below), sometime back, that allows me to disable all Menus and Toolbars and the function does work. I have a separate cmdButton that will set them all back to 'True' for when I am working in design view, but it only sets them back to 'True' on the particular db I am working on. If I open a separate db (like looking at someone's attachment here) I always have to add a cmdButton and run the function to set all Menus and Toolbars to 'True'. Why is that? It would seem to me if I click the button in any db to set them back to 'True' then that would affect every db.
TIA,
Shane
Code:
' Disable all Menus and Toolbars
Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i