Hi Kevin!
What I would do is just change the caption of the button and then key my code off of what the caption says. For example:
Private Sub YourButton_Click()
If YourButton.Caption = "Lock Record" Then
YourText1.Locked = True
YourCombo1.Locked = True
etc, or loop through the controls
YourButton.Caption = "Unlock Record"
Else
YourText1.Locked = False
etc. as above
YourButton.Caption = "Lock Record"
End If
End Sub
Of course, you can also throw in a check of the user trying to unlock the record to see if the user has the appropriate security level for that action.
hth
Jeff Bridgham
bridgham@purdue.edu