S
Silvio
Hello, how can I programmatically hide all my custom toolbars without having
to specify each toolbar name? In my database, I am showing toolbars based on
the user credential, (Admin, user, guest, etc.)
I know I can do this:
If Me.GroupID = 1 Then
DoCmd.ShowToolbar "GuestToolbar", acToolbarNo
DoCmd.ShowToolbar "UserToolbar", acToolbarNo
DoCmd.ShowToolbar "AdminToolbar", acToolbarYes
Exit Sub
End If
But, instead of having to specify all the toolbar names to hide (in this
example I have used "GuestToolbar" and UserToolbar) I would like to hide all
of them regardless of the name, and at the end display only the one I want
(In this example "AdminToolbar"). I guess should be something like:
DoCmd.ShowToolbar "*", acToolbarNo
DoCmd.ShowToolbar "AdminToolbar", acToolbarYes
Thank you,
Silvio
to specify each toolbar name? In my database, I am showing toolbars based on
the user credential, (Admin, user, guest, etc.)
I know I can do this:
If Me.GroupID = 1 Then
DoCmd.ShowToolbar "GuestToolbar", acToolbarNo
DoCmd.ShowToolbar "UserToolbar", acToolbarNo
DoCmd.ShowToolbar "AdminToolbar", acToolbarYes
Exit Sub
End If
But, instead of having to specify all the toolbar names to hide (in this
example I have used "GuestToolbar" and UserToolbar) I would like to hide all
of them regardless of the name, and at the end display only the one I want
(In this example "AdminToolbar"). I guess should be something like:
DoCmd.ShowToolbar "*", acToolbarNo
DoCmd.ShowToolbar "AdminToolbar", acToolbarYes
Thank you,
Silvio