Solved

Limit Query Execution to Read Only

Posted on 2013-01-17
6
294 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 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 38787006
0
 
LVL 30

Expert Comment

by:hnasr
ID: 38787027
One way: Query Properties.
Record Type: Snapshot
0
 
LVL 57
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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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 30

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

856 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