简体   繁体   中英

MS access password protect for other users

1.I have created a MS access db, where list of values are present in single excel column. Then i have created a 2 form first is background and 2nd is sku search.As in the screenshot. The use of the serach text is to searcha data from the list and gives result if present. I want to share it to different user.But i dont want them to edit it. Now if i select "Alt+f11", then Design mode and it allows to edit. I want the different user should not see the excel data.

  1. In future i might edit the access to insert new data.So it should have the option to insert/edit the value only to me. Ideally user will place the MS access it in their local drive and use it. I am using MS 2010. please help. or if i set any password protected then it will be vey good so different user can not enable the content. is it possible?

在此处输入图片说明

If you don't want them to edit the data, then make textbox.enabled = False (this is on the Data tab of the Property sheet).

If you want to make it so the user can't edit the form, you can trap for f11 in the On Key Down event of the form itself. It's been a while since I've done that, but I believe this will work:

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

    Select Case KeyCode
        Case vbKeyF11
            KeyCode = 0
            MsgBox "Access not allowed"
        Case Else
    End Select

End Sub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM