473,512 Members | 14,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Make DB Objects Read Only?

58 New Member
Hi all!
I have a table of which should be converted to READ ONLY after confirmations! The Confirmation Button may be set to VBA to change the table properties to ReadONLY!!!!
Please help!
Apr 23 '11 #1
5 3258
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Tables cannot be set to read-only in Access.

If you really mean that you are accessing via a form you can use the form's allow edits and allow deletions properties to control whether or not users can edit the records. Although setting these properties in VBA is simple, you should be careful about how you do so as users may wish to make small changes to records after they confirm them (to correct a spelling error, for instance). I allow a short time period for this, set in a properties table for lookup and modification if required.

-Stewart
Apr 23 '11 #2
Moah Scout
58 New Member
Thanks alot Stewart! I will try your suggestion, this DB is just a trial version. It doesnt mater whether you disable it or not, we dont expect any editing after confirmation
Apr 23 '11 #3
Mr Key
132 New Member
According to my knowledge, if you link the db to another db, there are options to decide whether you want the tables to be linked as read only or not!!
There might be some trick for it
Apr 24 '11 #4
Mr Key
132 New Member
What if we create a copy of another db on the backend and delete the existing one and then create new db with no objects but include the link of the backend db wont it be the read only? I just wonders!!!!
We can also prevent the user from opening the realbackend db.
Apr 24 '11 #5
Stewart Ross
2,545 Recognized Expert Moderator Specialist
No, Mr Key, what you mention is just added complication which will not achieve what the poster requested - which is to have a table read-write until the record is saved, then read-only thereafter.

As mentioned, Access cannot set individual tables read-only, although it is certainly possible to treat the recordsource of forms as snapshots rather than dynasets (which will make them in effect read-only) - but only through the forms interface, not the tables as such.

-Stewart
Apr 24 '11 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
9198
by: Greg Brunet | last post by:
In puzzling over classes, I'm wondering if classes can have read-only static properties? I certainly seem to be able to do create static properties like this: class C(object): count = 0 def...
1
5199
by: Efrat Regev | last post by:
Hello, I would like to recurse through a directory and make files (which match a specific criteria) read only. From searching the Internet, I found...
1
2025
by: samuelgreene | last post by:
Hello, I have a front-end access db on a server share - the users should COPY the db to their desktop - but we know how that goes. I've tried to make it read only and have denied execute...
24
41542
by: Bob Alston | last post by:
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...
6
2651
by: BBM | last post by:
I have an object that has a fairly complex construction sequence, so I have written a dedicated "factory" class that invokes the constructor of my object class (which does nothing but instantiate...
3
1851
by: jao.sanien | last post by:
Hi I have a access file that need to be made to read only. And the file should be password protected if I want to edit something. So those who doesn't have the password can only read. I don't...
1
2613
by: leiger | last post by:
Hi, I need help with this problem as soon as possible (within a couple of days). This is the first time I have ever used Access 2007 and therefore I am having some problems - especially as I...
11
49286
by: eimbert | last post by:
Hi, Im fairly new in the Access world. I would like to know how I can prevent users from changing data entered into a specific field of a record. Once I have completed the data Entry they should be...
1
1346
by: awigren | last post by:
I have already created a way to add new data in my database through a 3-step process. Now that I have all my methods of entering data set, I am now wondering if there is any way to make a...
4
3727
by: sweetfalguni | last post by:
Hello, The codes below worked successfully in Access 2003 Private Sub Form_Current() If Me.NewRecord Then Me.AllowAdditions = True Me.AllowDeletions = True Me.AllowEdits = True...
0
7254
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,...
0
7373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7094
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...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5079
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...
0
3230
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...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1585
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 ...

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.