Solved

How to make an Access database read-only?

Posted on 2012-03-27
14
5,112 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
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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Outlook Free & Paid Tools
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now