Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    sdel_nevo is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    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

  2. #17
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    So why not skip the code and set it in design view?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #18
    sdel_nevo is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi Mate

    because I'm silly, and never even thought of that lol,

    well that's one way to over engineer a solution

    Steve

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. IIF Function in Forms
    By withk001 in forum Forms
    Replies: 3
    Last Post: 10-06-2015, 09:09 AM
  2. Replies: 5
    Last Post: 01-24-2014, 09:05 AM
  3. add refrences by VBA
    By sdel_nevo in forum Programming
    Replies: 3
    Last Post: 08-24-2013, 11:23 AM
  4. Replies: 0
    Last Post: 03-17-2011, 09:57 AM
  5. Search function in forms
    By vCallNSPF in forum Forms
    Replies: 1
    Last Post: 03-14-2010, 06:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums