Re: How to make all access to linked table read-only



Br@dley wrote:
Bob Alston <tulsaalstonsNOSPAM@xxxxxxx> wrote:

David W. Fenton wrote:

"Wayne Morgan" <comprev_gothroughthenewsgroup@xxxxxxxxxxx> wrote in
news:OyeGe.2068$oY.774@xxxxxxxxxxxxxxxxxxxxxxxxxx:



While this won't stop them if they get access to the database
window, you could make the queries "Snapshots". Snapshots are read
only and any subsequent object based on that query will also be
read only for data that comes from that query. Also, reports
aren't a problem, there is no editing data that the user can do in
a report. The problem would come it if you give them access to a
form or query (or the table itself) that is read/write.


Why not skip linked tables and assign the recordsources using
connect strings, like:

 SELECT ...
 FROM MyTable IN '\\Server\databases\Data.mdb'
 WHERE ...

Then set the recordset type for the form to SNAPSHOT.

Again, absent user-level security, the end user could still change
the recordsource and the recordset type property at runtime, but
this would surely slow them down substantially.

The other advantage of this is that you could alter the recordset
type property at runtime according to who the user is, so that you
wouldn't have to have completely different front ends for the
read-only and editing-allowed users.


I don't want to use a form. I suspect the users will work from queries, do cross tabulations and occasionally reports. So I really need to protect the table or hide the table and protect the underlying query. Bob


By now you could have easily setup jet security to limit write access to your tables. It's there for a reason so why not use it?
I have used it and find it adds a layer of complexity to things. I try to avoid if I can.

So far I found the one very simple approach, noted above.
Create a new MDB with one table with one field defined. Using the operating system, make the mdb read only.
In the user's database, link to the real data and to the r/o database.
CReate a new query with both the real data and r/o table. Select all fields from the real data. No need to select any data from the r/o table or make any relation.
Save the query.
Hide the two linked table definitions.
All the user sees is the query which has the desired data but read-only.
Here is the thread where I learned how to do this:
http://groups-beta.google.com/group/comp.databases.ms-access/browse_thread/thread/44ee4c78ca532cbe/24ef78d347511c73?q=make+table+%22read+only%22&rnum=11&hl=en#24ef78d347511c73


But am still open to anything even easier than that.

Bob
.



Relevant Pages

  • Re: Data Changing Issue
    ... In the query, on the field line, I added the above expression. ... *if* you are in VBA. ... the data of your table from a recordset. ... I am running some queries using a form I created and for some ...
    (microsoft.public.access.queries)
  • Re: Help with Microsoft help on linking Access to Outlook
    ... Tools - references - tick Microsoft Outlook object library. ... in the criteria cell in the graphical query builder. ... the same filtered recordset every time. ... normal form to allow the normal filtering process and viewing of the ...
    (microsoft.public.access.formscoding)
  • Re: Help with Microsoft help on linking Access to Outlook
    ... in the criteria cell in the graphical query builder. ... use as the source in the routine. ... the same filtered recordset every time. ... normal form to allow the normal filtering process and viewing of the ...
    (microsoft.public.access.formscoding)
  • Re: Help with Microsoft help on linking Access to Outlook
    ... and have the query point to the combo box to get its value. ... the same filtered recordset every time. ... choose themselves what fields to filter on. ... Set MyRS = MyDB.OpenRecordset" ...
    (microsoft.public.access.formscoding)
  • Re: Help with Microsoft help on linking Access to Outlook
    ... in the criteria cell in the graphical query builder. ... use as the source in the routine. ... the same filtered recordset every time. ... normal form to allow the normal filtering process and viewing of the ...
    (microsoft.public.access.formscoding)