Results 1 to 9 of 9
  1. #1
    skoz44 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Location
    Tucson, Arizona
    Posts
    3

    Creating A Locked User Interface

    We have been utilizing an inexpensive pre-made vehicle database for a while and I'm in the process of creating one in Access too allow me greater flexibility in design of it. The problem I've run into is all the database samples I've seen all contain a user interface that is not locked, thus the tables are accessible to the user. I'd like to hide all the things that a user does not need access to create a look similar to the attached.

    Where do I look to learn how to do this and does anybody have a sample database that contains this I can look at?

    Thanks,


    Aaron
    Attached Thumbnails Attached Thumbnails Vehicle Database.jpg  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    you can create a copy of your form, remove the fields you dont want others to see , save
    then look at the user, then determine whether to open the full form , or abbrev. form.
    this form can also be set to lock fields so user cant change them.

    If that is so, then you will want a user table ,tUsers that has each userID and rights for that user.
    the userID is captured when the main form opens
    vUser = Environ("Username")


    Then you can determine that users rights from his login.


    Code:
    vRights = dlookup("[rights]","tUsers","[userid]='" & vUser & "'")
    
    
    select case vRights
       case "All"   'all rights
          docmd.openform "frmEdit"
    
    
       case "RO"    'read only
          docmd.openform "frmRO"
    end select

  3. #3
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    In Form Properties, under the "Data" tab, you can set "Allow Editions" to "No."

    You may also be talking about the "Navigation Pane" which is on the left side of access.

    If you want to hide this, go to File>Options>Current Database>(Uncheck) Display Navigation Pane.

    If you save your database like this, you will now have to hold the "Shift" key while opening the database, and once the database is open you can let go of the "shift" ket. This will bypass your macro to open the main form. And it will also display your navigation pane.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    And also disable ribbon, function keys, and shortcut menus so they can't expand the navigation pane.

    The posted image appears to show custom ribbon.
    Review:
    http://www.accessribbon.de/en/
    https://msdn.microsoft.com/en-us/lib...ffice.12).aspx

    However, holding down shift key when opening accdb will bypass those option settings and everything is wide open.
    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
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    OR...

    If you install runtime version of access on the users machines, you wont have any of these problems. However, you lose complete functionality of ribbon.

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by cbende2 View Post
    OR...

    If you install runtime version of access on the users machines, you wont have any of these problems. However, you lose complete functionality of ribbon.
    Are you sure about that? I go through extra steps to disable the ribbon.

  7. #7
    skoz44 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Location
    Tucson, Arizona
    Posts
    3
    Those are exactly the answers I was looking for. Thanks to all.

  8. #8
    skoz44 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Location
    Tucson, Arizona
    Posts
    3
    Now how do I mark this thread as solved?

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Thread Tools dropdown above first post.
    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.

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

Similar Threads

  1. Replies: 5
    Last Post: 01-12-2015, 03:44 PM
  2. User Interface Missing - Help Please
    By historian in forum Access
    Replies: 20
    Last Post: 02-22-2013, 04:14 AM
  3. access user interface
    By nunuwawa in forum Access
    Replies: 1
    Last Post: 01-01-2012, 10:56 AM
  4. User Interface
    By scubagal in forum Access
    Replies: 3
    Last Post: 07-26-2011, 02:21 PM
  5. create user interface from table
    By mer in forum Forms
    Replies: 5
    Last Post: 07-24-2011, 08:07 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