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.
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.