Results 1 to 3 of 3
  1. #1
    Tom123 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    11

    Lock access to query


    Is it possible to prevent users from running individual queries but allow macros to run them? I have some that I only want to run as part of a macro in a certain order.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    One way would be to convert your queries to SQL code (just change to SQL View on your query, and Copy and Paste the code). You can then imbed that SQL code in VBA and run that SQL code in VBA instead. Then the users wouldn't even those Query objects in Access.

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    JoeM is correct. But it also sounds like maybe you have an issue in terms of having the navigation pane available to users in general......

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

Similar Threads

  1. Exclusive access/DB lock
    By Boru in forum Access
    Replies: 18
    Last Post: 07-28-2014, 01:38 AM
  2. time lock in access
    By hedonistclub in forum Access
    Replies: 7
    Last Post: 02-05-2013, 08:31 AM
  3. How to TRULY lock access to tables
    By is49460 in forum Security
    Replies: 20
    Last Post: 02-01-2013, 03:41 PM
  4. Access DB Lock Out
    By ETCallHome in forum Programming
    Replies: 3
    Last Post: 06-13-2011, 08:22 AM
  5. make the access file lock
    By naggappan in forum Security
    Replies: 1
    Last Post: 03-21-2011, 07:06 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