I am trying to disable the menus for non-admin users. I have done this successfully but the copy/paste functions (by right-clicking in a textbox) do not work. I have tried enabling the Menu Bar, but this still isn't working.
Traditional Control + C and Control + V work fine. It is the right-clicking the doesn't come up.
Traditional Control + C and Control + V work fine. It is the right-clicking the doesn't come up.
Code:
If adminRights = True Or userii = "mjdamico" Then 'Set Admin rules For i = 1 To CommandBars.Count CommandBars(i).Enabled = True Next i DoCmd.SelectObject acTable, , True DoCmd.SetWarnings True Else 'Set non-Admin rules For i = 1 To CommandBars.Count CommandBars(i).Enabled = False Next i DoCmd.SelectObject acTable, , True DoCmd.RunCommand acCmdWindowHide DoCmd.ShowToolbar "Menu Bar", acToolbarYes DoCmd.SetWarnings False End If
Comment