Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uneditable results from query?

Status
Not open for further replies.

696796

Programmer
Aug 3, 2004
218
GB
Hi there,

Can i produce a normal select query that brings up the table of results, but cant be edited? At the moment my query brings up results, but if i click on a field i can edit any data i see, which is a bad thing..
I dont want to export to excel either, as ive already done that.

Its probably really easy but i'm just not too sure

Regards,

Alex Marchant
 
Is there a reason you are displaying results to a user in datasheet of a query rather than a form? A form has properties to allow editing or not.

One method to make a query readonly is to add a totals subquery as a column.
ReadOnly: (Select Count(*) as ReadOnly FROM AnySmallTable)

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Well my query has parameters, so im asking for the user to input two dates and then a priority level. I suppose i could output it to a form, (I just did a quick wizard) but i just thought it would give my user quick access to the raw data they require.
 
If you use SELECT DISTINCT then the query is not updatable.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
696796,
I don't ever expose a query datasheet view in applications. Forms have much more functionality and your parameter query can still be used, with either my suggestion or PHV's.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
thanks for your responses - decided to go with building forms for the queries, its true, it is more professional

Regards,

Alex
 
$0.02 - You can set the query type to Snapshot to make it read only with less overhead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top