473,796 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make all access to linked table read-only

Anyone know a way to make all access to a linked table, in another
Access MDB, read only?

I really don't want all the hassle of implementing full access security.

I can't do this at the server file system because in some front ends the
user needs update access.

I want to give users access to the data for reporting with their own
queries and reports. I just don't want to take a chance on them
updating the data via such tools.

Bob
Nov 13 '05 #1
24 41601
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.

--
Wayne Morgan
MS Access MVP
"Bob Alston" <tu************ ****@cox.net> wrote in message
news:W%dGe.5357 5$4o.43523@fed1 read06...
Anyone know a way to make all access to a linked table, in another Access
MDB, read only?

I really don't want all the hassle of implementing full access security.

I can't do this at the server file system because in some front ends the
user needs update access.

I want to give users access to the data for reporting with their own
queries and reports. I just don't want to take a chance on them updating
the data via such tools.

Bob

Nov 13 '05 #2
Wayne Morgan wrote:
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.

GREAT.

In the interim read about a way to relate the table to a table in a
read-only db and use the resultant query.

Your's is cleaner. And I understand I can hide the linked table entry
(but not sure how to unhide it to see it again).

Bob
Nov 13 '05 #3
Bob Alston wrote:
Wayne Morgan wrote:
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.

GREAT.

In the interim read about a way to relate the table to a table in a
read-only db and use the resultant query.

Your's is cleaner. And I understand I can hide the linked table entry
(but not sure how to unhide it to see it again).

Bob

OK but how do I specify that a query is to be/produce a snapshot instead
of a dynaset?

Bob
Nov 13 '05 #4
Bob Alston wrote:
Wayne Morgan wrote:
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.

GREAT.

In the interim read about a way to relate the table to a table in a
read-only db and use the resultant query.

Your's is cleaner. And I understand I can hide the linked table entry
(but not sure how to unhide it to see it again).

Bob

I trust you didn't mean create a snapshot of the data via using a
make-table query!!!! Ugly.

Bob
Nov 13 '05 #5
"Wayne Morgan" <co************ *************** @hotmail.com> wrote in
news:Oy******** *******@newssvr 25.news.prodigy .net:
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\datab ases\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.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #6
David W. Fenton wrote:
"Wayne Morgan" <co************ *************** @hotmail.com> wrote in
news:Oy******** *******@newssvr 25.news.prodigy .net:

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\datab ases\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
Nov 13 '05 #7
Br
Bob Alston <tu************ ****@cox.net> wrote:
David W. Fenton wrote:
"Wayne Morgan" <co************ *************** @hotmail.com> wrote in
news:Oy******** *******@newssvr 25.news.prodigy .net:

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\datab ases\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?
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Nov 13 '05 #8
Br@dley wrote:
Bob Alston <tu************ ****@cox.net> wrote:
David W. Fenton wrote:
"Wayne Morgan" <co************ *************** @hotmail.com> wrote in
news:Oy***** **********@news svr25.news.prod igy.net:

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\datab ases\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/...ef78d347511c73

But am still open to anything even easier than that.

Bob
Nov 13 '05 #9
To unhide it to see it again, go to Tools|Options|V iew tab and check the box
next to Hidden Objects. Don't hide the table using code, there is a bug that
can cause you problems.

--
Wayne Morgan
MS Access MVP
"Bob Alston" <tu************ ****@cox.net> wrote in message
news:NKeGe.5357 7$4o.5708@fed1r ead06...
Wayne Morgan wrote:
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.

GREAT.

In the interim read about a way to relate the table to a table in a
read-only db and use the resultant query.

Your's is cleaner. And I understand I can hide the linked table entry
(but not sure how to unhide it to see it again).

Bob

Nov 13 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1914
by: James Bird | last post by:
Hello In order to perform a hetrogeneous join (I think that's what they're called) between MySQL and another database, I've created an Access database containing linked tables from each datasource. I create the linked tables without any problems, clicking on "save password" before selecting the desired tables. I can then access both tables fine from within the Access GUI.
4
4056
by: Larry Rekow | last post by:
Using Access 2000, I have a linked table using specification named "Test Link Specification" When attempting to create data adapter in VS.Net, it first complains that it cannot retrieve the schema for the table, or when trying to preview data, it says that "The text file specification 'Test Link Specification' does not exist. ??
4
18965
by: Neil Ginsberg | last post by:
I have ODBC linked tables to a SQL 7 database in an A2K database. The linked tables do not have the password stored in them, so the first time the user accesses them, they need to enter the SQL password. I am developing a process that will automatically run at night which will access those tables. I need to be able to give Access the password, as the user currently does, so that the process can run without a password prompt appearing....
0
1443
by: Ocsom | last post by:
Greeting all; I link via ODBC to a SQL Server table using the sa login (database owner) and I open the table. I want to randomly delete records in the datasheet but somehow I do not have the permission .. Using the right-mouse-click, I ger the context sensitive menu and the Cut/Paste/New Record/Delete Record is greyed-out. Can someone help me understand what I need to do in order to have full access to the data (SQL Server table).
8
9247
by: Bri | last post by:
Greetings, I'm having a very strange problem in an AC97 MDB with ODBC Linked tables to SQL Server 7. The table has an Identity field and a Timestamp field. The problem is that when a new record is entered, either from a form or from the table view of the table, when the record gets saved it immediately displays #DELETED# in all of the fields. However, if I close the form or table view and reopen the record has in fact been inserted. The...
1
335
by: James Bird | last post by:
Hello In order to perform a hetrogeneous join (I think that's what they're called) between MySQL and another database, I've created an Access database containing linked tables from each datasource. I create the linked tables without any problems, clicking on "save password" before selecting the desired tables. I can then access both tables fine from within the Access GUI.
4
8127
by: Wayne Wengert | last post by:
I am trying to create a VB.NET Windows application to move some data from a local Access DB table to a table in a SQL Server. The approach I am trying is to open an OLEDB connection to the local Access DB and then add a Linked Table pointing to the table on the SQL Server and then run an "Insert Into (linked table)" query to add the new rows. I am having a problem getting the syntax to add that linked table to my local Access DB. When I...
9
4577
by: erick-flores | last post by:
If you have access to the database that the linked table is in, modify it there. You can't modify a linked table. Alternatively, you can import the linked table, then it won't be linked any more and you can modify it. There are potential problems with this strategy, as you will be working on a copy of the original table, so any new data that goes into the original table from elsewhere will not be reflected in your database. Hello all
3
13303
by: nzaiser | last post by:
Hello! This is my first time asking a question here, so please bear with me if I seem 'unconventional!' My issue is this..... OS: Windows_NT App: MS Access 2000 (also in 2003) ODBC linked table into a DB for which I have read/write/delete authority. I have verified the authority in the source DB - ad nauseum - it works. Tested the table in question (Region) specifically and another table (Store_Info) as well. I can open the Region...
1
2074
by: Bill Sublette | last post by:
Good Morning All. I know this is probably avery simple thing to do, but I'm not too familiar with Access. Some of you have probably read other posts I have created trying to get Excel to do things it just really wasn't designed to do so I decided to bypass that mess and create an Access database. Here's the issue: I have a linked Excel table in my Access database. It is currently blank and ready for the data to be inputted. I also have...
0
9684
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9530
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10182
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7552
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6793
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5445
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.