?
Solved

How to make an Access database read-only?

Posted on 2012-03-27
14
Medium Priority
?
7,831 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 1200 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 48

Assisted Solution

by:Dale Fye
Dale Fye earned 800 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
What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

 
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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
New style of hardware planning for Microsoft Exchange server.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

752 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