Results 1 to 8 of 8
  1. #1
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419

    Lock Access certain table, queries and forms


    And still work when running the VBA ?

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Depends. Need more detail about what and why.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419
    I have an Access database. Some people wants to use the tables in there to connect to other platforms. Those can be unlock. But I want to lock the other queries, forms and table that is not use. However I still want VBA to work. Can that be done, please advise.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    I'm sorry to repeat myself but it still depends.
    For example if you lock anything you want to alter using an action query (append/update/delete), then it won't work

    I suggest you don't lock anything.
    Instead HIDE the navigation pane so end users have no direct access to tables/queries etc
    This is the standard approach to all multi-user databases
    Then add suitable code to buttons on forms to perform whatever you want to do
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419
    Can it unlock, do the altering and appending and then lock it ? I already hide the navigation pane

  6. #6
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Possibly .... but why bother. If the nav pane is hidden, users can't get to any objects
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  7. #7
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419
    Yes they can just use shift enter or I forgot the short cut and can access. Could you still provide me the example just in case.

  8. #8
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Keep a development copy which allows you full access.
    Remove the ribbon as well as the nav pane and disable shift bypass from the distributed version if you are that worried about users 'tampering'
    See this example database for ideas and related code which will allow extra security https://www.accessforums.net/showthread.php?t=69856
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 5
    Last Post: 11-13-2017, 02:09 PM
  2. Lock Tables/ Keep Forms Unlocked
    By KMan in forum Access
    Replies: 1
    Last Post: 06-12-2016, 08:32 PM
  3. Replies: 1
    Last Post: 12-29-2011, 05:51 PM
  4. 2010 and 2007 Access Queries, Forms & Reports
    By rpaldridge in forum Import/Export Data
    Replies: 3
    Last Post: 02-11-2011, 07:37 AM
  5. Replies: 6
    Last Post: 08-05-2010, 04: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