Solved

Making a Access Database a Secured Read Only Database

Posted on 2014-10-22
10
133 Views
Last Modified: 2015-01-09
I right Click on Properties and checked Read –Only.  It opens and states Read Only but at the top states Save As to be able to make changes.  How do you eliminate Users having the option to Save As so they can change information.

Any help would greatly be appreciated.
0
Comment
Question by:ca1358
10 Comments
 
LVL 23

Accepted Solution

by:
Eirman earned 500 total points
ID: 40397470
If the database file is read only, saving it as something else leaves the original read-only file unchanged.

The new file (a "Save As" file of the read-only file) must a different name if it save in the same location.

Therefore users can create a copy of the database and make changes ... the original will remain unchanged.

There is a little arrow on the "open button" on the open dialogue which give other options for opening a database as read only (or exclusive).
0
 
LVL 36

Expert Comment

by:PatHartman
ID: 40397519
There is no way to truly secure an Access database.  Are you worried about protecting data or about protecting objects?

All steps to lock down start by using a form driven interface.  You hide the navigation pane, you add log in security to force people to log in.  Your forms should refuse to work if a valid user is not logged in.  You would compile the database and distribute as an .accde which has been renamed as .accdr.  You would add code to prevent shift bypass (search for this phrase to find code samples).
0
 

Author Comment

by:ca1358
ID: 40397560
I know how to Shift bypass
Private Sub bDisableBypassKey_Click()
'***************** Code Start ***************


'Assign this to the OnClick event of a command button (or double-click event
'of a label or graphic) named "bDisableBypassKey"
'Change the "TypeYourBypassPasswordHere" default password to your password


  On Error GoTo Err_bDisableBypassKey_Click
    'This ensures the user is the programmer needing to disable the Bypass Key
    Dim strInput As String
    Dim strMsg As String
    Beep
    strMsg = "Do you want to enable the Bypass Key?" & vbCrLf & vbLf & _
             "Please key the programmer's password to enable the Bypass Key."
    strInput = InputBox(Prompt:=strMsg, TITLE:="Disable Bypass Key Password")
    If strInput = "pass" Then
        SetProperties "AllowBypassKey", dbBoolean, True
        Beep
        MsgBox "The Bypass Key has been enabled." & vbCrLf & vbLf & "The Shift key will allow the users to bypass the startup & vbInformation, &_ "
        'Set Startup Properties'"

    Else
        Beep
        SetProperties "AllowBypassKey", dbBoolean, False
        MsgBox "Incorrect ''AllowBypassKey'' Password!" & vbCrLf & vbLf & "The Bypass Key was disabled." & vbCrLf & vbLf & "The Shift key will NOT allow the users to bypass the & startup options the next time the database is opened.", vbCritical, "Invalid Password"
        Exit Sub
    End If
Exit_bDisableBypassKey_Click:
    Exit Sub
Err_bDisableBypassKey_Click:
    MsgBox "bDisableBypassKey_Click", Err.Number, Err.Description
    Resume Exit_bDisableBypassKey_Click
End Sub
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 75
ID: 40397571
Of course, Shift Key Bypass is easily disabled from a remote Access db ... so again, not secure in that context.

What exactly is your goal here ?
0
 

Author Comment

by:ca1358
ID: 40397590
I been advised that they want a Database to be Read Only and they dont want the users to login anymore.  Just to have the Database Tables to be Read Only so that the all Users can not change data but only look at data.
0
 
LVL 23

Expert Comment

by:Eirman
ID: 40397689
Did you look at that "Open - Read Only" Option (on the dropdown arrow)
0
 

Author Comment

by:ca1358
ID: 40397734
Are you talking about Right Click on Name of Database and choose Properties and check Read-only_Apply_Ok
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 40397851
Eirman is right. If the file itself is marked Read-Only on the server, there is _no way_ to alter it.
Save As .. only offers the option to save the modified file (in memory) to a new file. Doing so leaves the original as is.

/gustav
0
 

Author Closing Comment

by:ca1358
ID: 40541433
Thank you
0
 

Author Comment

by:ca1358
ID: 40541436
Thank you
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

830 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