Results 1 to 4 of 4
  1. #1
    paul83 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2016
    Posts
    2

    Lock a query for editing - run only

    Hi All



    I have had a search through but I was unable to find anything on this subject, and also unable to find using Google

    I am working with quite a large dataset, and the data is run in different queries each day by individual managers. However; these managers are....pretty useless when it comes to designing queries. So it is causing a lot of problems.

    One option is to run all the queries myself, however I don't have enough time to do this.

    Is there a way that anyone knows where I could create the query, lock it for editing and give read/run only access to the managers. So they can still click it and run it, so they can print it, but not edit it.

    Or any other outside the box ideas, perhaps scheduling the specific queries to run at a certain time each day and print?

    Thanks in advance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    It's a param...
    Code:
    if IsManager() then 
       VParm = acedit
    else
       VParm = acReadonly
    endif 
    
    docmd.openquery "qsMyQry", ,vParm

  3. #3
    paul83 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2016
    Posts
    2
    Thanks for your reply; so if we look to remove access from the 'back' of access; only allow through the front design; then have a dashboard with buttons linking to the queries, and apply this - is that the best action you'd say on this?

    Thanks again for your response

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    yes. only you would know how to calculate IsManager.

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

Similar Threads

  1. How to temporary lock form for editing
    By aonsu209 in forum Forms
    Replies: 5
    Last Post: 01-15-2015, 07:59 AM
  2. Replies: 3
    Last Post: 10-19-2013, 10:21 AM
  3. lock the editing of combobox text
    By Grooz13 in forum Forms
    Replies: 14
    Last Post: 10-23-2011, 02:08 PM
  4. Lock Record for Editing on a Linked table
    By khalid in forum Programming
    Replies: 3
    Last Post: 06-14-2011, 08:37 AM
  5. Replies: 0
    Last Post: 03-26-2007, 12:24 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