Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Limit Query Execution to Read Only

Posted on 2013-01-17
6
Medium Priority
?
319 Views
Last Modified: 2013-01-25
I am combining several dozen primitive Access databases into a comprehensive application with menu-driven functionality. But some users of the old systems are used to being able to create ad hoc queries to look at specific sub-sets of data. I've created an "Ad Hoc" application to allow this - linking to the same back end as the main application does. Then each user can build up his/her own set of ad hoc tools and they won't be over-written when new versions of the main application .accdb over-write previous versions.

Is there a way to limit the queries that users build in the ad hoc environment to "Read Only" so they can pull Select and Cross tab queries but can't execute action queries that will change the data?

Thanks.
0
Comment
Question by:Buck_Beasom
6 Comments
 
LVL 53

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 38787006
0
 
LVL 31

Expert Comment

by:hnasr
ID: 38787027
One way: Query Properties.
Record Type: Snapshot
0
 
LVL 58
ID: 38787087
Your best best is to move the data into SQL Server, which has full security and you'll be able to control at the server level.  By presenting views for each of the tables, you'll be able to limit the users to read-only data.

 ULS security in Access is cumbersome at best, and with the ACE database format, has been dropped.

 And snapshots are a bad idea as they are a performance drain.  Each query that would run would make a complete copy of the resultset locally, besides which, you'd need to rely on the user making the query a snapshot, which if they wanted to modify data, they would not do.

Jim.
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
LVL 61

Expert Comment

by:mbizup
ID: 38787094
If I'm understanding you correctly, you are allowing them to change data through forms that you have in your "comprehensive application", but through another application want to allow the same users to build their own queries (full access to the design environment in a database linked to your back-end?) .

If that describes your setup, I don't think there is any way you can prevent them from writing/running action queries.
0
 
LVL 31

Expert Comment

by:hnasr
ID: 38788846
If queries are created through application, an alternative to snapshot type query, you may change the primary key to a calculated field, by adding 0 (if numeric).
0
 

Author Closing Comment

by:Buck_Beasom
ID: 38818433
I don't think these links refer to 2007/2010, but they were helpful anyway.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question