Results 1 to 7 of 7
  1. #1
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727

    Locking Down Frontend Database

    Found this code online to lock down everything in the ribbon I guess.

    I have a few questions:
    Where do I enter this code?
    Whats the difference between the menu bar, ribbon, and the command bar?
    I also have Access 2007. Would this code work for that?


    Private Sub LockDown()
    DoCmd.ShowToolbar "Ribbon", acToolbarNo
    DoCmd.ShowToolbar "Menu Bar", acToolbarNo


    Dim i As Integer
    For i = 1 To CommandBars.Count
    CommandBars(i).Enabled = False
    Next i
    End Sub

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Search forum: custom ribbon

    Here is one https://www.accessforums.net/securit...bar-39781.html

    And a site I found helpful http://www.accessribbon.de/en/

    Bing: Access custom ribbon

    And Microsoft info http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727
    Hey June7,

    why is that microsoft did not have a more user friendly way of locking down and securing a database? Why does it seem like this whole process is so manual? Did microsoft not anticipate that people would want to lock and restrict features of access for their users? Makes no sense.

    Also what do you think of this set up:

    Change all my forms to Modal and Pop Up.
    Disable the shift key on open.
    Change the file extention to .accdr
    Hide all tables, forms, queries, macros, modules, and navigation pane.
    Uncheck all the short menus and lay out view.

    Do you know if this is secure enough? I think I still need to get rid of the quick access toolbar and the ribbon because if the user right clicks on the border above the ribbon, they can click customize toolbar and get access to all the options to unhide everything and get access to the tables to delete records. Is that right?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I guess 2003 had security features but they were dropped with 2007. Access was really meant to be a single user app.

    I seldom use modal and popup. They are annoying when debugging.

    I've never locked out the shift key and never set up password login.

    Never used accde or accdr.

    I do hide the navigation pane and disable the F11 toggle and disable short menus and use custom ribbon.

    Security is not an issue with the databases I've developed. Nobody else touches my master development copy of the frontend because they just wouldn't and the folder is secured. Nobody else goes directly to the backend.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727
    When you say its annoying when debugging for modal and popup, do you mean that when the app crashes, you are not able to see the vba to correct the bug?

    How does the F11 toggle work? I heard about it and was thinking of doing that as well. What exactly does the user lose access to if I disable the F11 toggle?

    I've been told that no one would go that far as to try and sabotage the data base and that I may be going to deep into securing it. I guess I may just be paranoid. Most people don't even know about the shift key nor do they know about the accdr file extension so maybe what I have is enough. Plus like you said, I too have a master frontend development file so if the user screws up the front end file, I can just replace it.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Yes, modal and popup get in the way.

    F11 just expands and collapse the navigation pane.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    amerch92 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2015
    Posts
    1
    Quote Originally Posted by data808 View Post
    Found this code online to lock down everything in the ribbon I guess.

    I have a few questions:
    Where do I enter this code?
    Whats the difference between the menu bar, ribbon, and the command bar?
    I also have Access 2007. Would this code work for that?


    Private Sub LockDown()
    DoCmd.ShowToolbar "Ribbon", acToolbarNo
    DoCmd.ShowToolbar "Menu Bar", acToolbarNo
    Dim i As Integer
    For i = 1 To CommandBars.Count
    CommandBars(i).Enabled = False
    Next i
    End Sub

    Thanks
    Go to whatever the opening form is and click "Design". In the "Event" tab click "On Load". Paste the code within the macro. (delete the Private Sub LockDown() and End Sub parts).

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Queries Locking the Back End Database
    By vikasbhandari2 in forum Access
    Replies: 5
    Last Post: 07-23-2012, 08:55 AM
  2. Replies: 1
    Last Post: 06-12-2012, 03:01 PM
  3. Replies: 2
    Last Post: 03-28-2012, 11:35 AM
  4. Back End Database Locking
    By sai_rlaf in forum Database Design
    Replies: 2
    Last Post: 02-28-2012, 02:20 PM
  5. 2 SQL Database sources one frontend
    By kevinharding in forum Programming
    Replies: 3
    Last Post: 03-22-2006, 06:34 AM

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