Hi Guys
Thanks very much for your help, after thinking about this at the Pub, I realised that I did not need to restrict the right click menu by user access, so have just restricted for all
admins can still get to the design view at startup however
the code I used was this
Code:
'---------------------------------------------------------------------------------------
' Method : RightClickMenu
' Author : me
' Date : 08/06/2017
' Purpose: Stop Right Click menu On Forms
'---------------------------------------------------------------------------------------
Public Function RightClickMenu(frm As Form)
On Error GoTo RightClickMenu_Error
frm.ShortcutMenu = False
On Error GoTo 0
Exit Function
RightClickMenu_Error:
MsgBox "Error Has Been Found " & Err.Number & " (" & Err.Description & ") In Procedure (RightClickMenu) Of (Function ModUtilities)"
End Function
and called using this
Code:
'hide short cut menu based
Call RightClickMenu(Me)
thanks very much to you both
Steve