Solved

How to make an Access database read-only?

Posted on 2012-03-27
14
6,472 Views
Last Modified: 2012-06-21
I have about 20 old versions of an Access (2010) database which I would like to make read only.  How do I do this?  Thanks.
0
Comment
Question by:RishiSingh05
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
14 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 300 total points
ID: 37773065
How about setting the windows file properties so that they are read-only to the users?

Alternatively, set allow edits, additions and deletions on your data entry forms to FALSE.
0
 
LVL 47

Assisted Solution

by:Dale Fye (Access MVP)
Dale Fye (Access MVP) earned 200 total points
ID: 37773091
You could set the files read-only attribute to True in Windows Explorer.  Right click on the file name select properties, and then check the Read Only checkbox.  But this can be bypassed by anyone who knows what they are doing and is intent on making changes.
0
 
LVL 75
ID: 37773163
Put them on a CD ROM ... any other scheme can be circumvented.

mx
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37773166
Yes, "Read Only" is hard to define for an Access database...
...There is always a way for a user to get data out of the db if they are determined...
Also there are things you can actually change in a DB that have nothing to do with changing the "Data".

If you set it as "Read Only" in the file properties, a user can still select: Save As
...and simply save an editable version somewhere else...

Perhaps you should define your requirement in terms of your ultimate goal.
Read only?
No data changes?
...etc


Your best bet may be to save a "Golden" copy of the DB as the Read only version, that no one has access to (No Permissions to)
Then give users a "copy" of this read only DB.

Then anytime you need to reference the DB, use the Golden copy, not the user copy.

But again, you need to clearly define your ultimate goal here...

JeffCoachman
0
 
LVL 75
ID: 37773181
Of course, they can always be dragged off a CD ROM ...
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37773517
Yeah, MX, that's why I asked about the OP's ultimate goal here...
No Data Changes?
No Design View changes?
No changes to any settings?
...all of the above?
...None of the above,...?

Not sure how "Secure" this needs to be...?

Perhaps it is a simple as mbizups post...?

;-)

Jeff
0
 
LVL 75
ID: 37773536
I think the bottom line is ... what mbizip suggested, if it's possible to do that in this case.

mx
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37773546
You won't catch me crossing the #2 Expert in the Access zone...

;-)

Jeff
0
 
LVL 75
ID: 37773567
ha ha ... However ... actually ... even if the Folder is RO ...  user may still be able to drag to another location, depending on just how permissions are set up ...

Seems we have been down this road before, and there really isn't a 100% sure way to do RO.

mx
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37773628
Yes,...

In thinking a bit more....

Just "Opening" (Then immediately closing) an access DB will change the date.
Signifying a "Change"

So yes, we still need to clarify the OP's ultimate goal...
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37773649
RishiSingh05,

Are you still with us....

Some clarification may be needed...
0
 

Author Comment

by:RishiSingh05
ID: 37777582
About what my objective is, it is to prevent a user who may have opened an old version of the db and make any data changes unwittingly.  I like the suggestion about setting the file’s read-only attribute to “True” in Windows Explorer. I haven’t had time to test it to see exactly how it works.  Will it allow a user to change data but prevent him from saving?
0
 
LVL 75
ID: 37778043
" Will it allow a user to change data but prevent him from saving?"

Any savvy user can easily change that setting back ....  so ... just keep that in mind.

mx
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37778447
Yes as was mentioned, a user also open a Read-only DB and select "Save As" and immediately open a "editable" version of the DB...

So like mx states, "just keep this in mind"

I like the cd-rom technique.

This way, no matter what they do, (as long as you only reference the file on the CD), the file (on the cd) should not change...
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

730 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