J
Janna
I've used Allen Browne's Locking bound control codes
(http://allenbrowne.com/ser-56.html) to prevent overwriting data accidentally
within an Access form and it works perfectly.
Now, to make it slighly more difficult for certain users to edit this form,
I'd like to add code behind the cmdLock command button (code below) to prompt
for a password to unlock the form. I realize this isn't strong security. I
just want to make it a little more challenging for certain staff to be able
to edit the form when they should have read-only permission.
Private Sub cmdLock_Click()
Dim bLock As Boolean
bLock = IIf(Me.cmdLock.Caption = "&Lock", True, False)
Call LockBoundControls(Me, bLock)
End Sub
(http://allenbrowne.com/ser-56.html) to prevent overwriting data accidentally
within an Access form and it works perfectly.
Now, to make it slighly more difficult for certain users to edit this form,
I'd like to add code behind the cmdLock command button (code below) to prompt
for a password to unlock the form. I realize this isn't strong security. I
just want to make it a little more challenging for certain staff to be able
to edit the form when they should have read-only permission.
Private Sub cmdLock_Click()
Dim bLock As Boolean
bLock = IIf(Me.cmdLock.Caption = "&Lock", True, False)
Call LockBoundControls(Me, bLock)
End Sub