Angello Pimental
05-22-2001, 09:33 AM
I have a form on which I have a command button that toggles between locking/unlocking a record for editing. Using the code:
Private Sub Command61_Click()
If Command61.Caption = "UNLOCK RECORDS" Then
Me.AllowEdits = True
Command61.Caption = "LOCK RECORDS"
Me.Refresh
Else
Me.AllowEdits = False
Command61.Caption = "UNLOCK RECORDS"
Me.Refresh
End If
End Sub
Question: The command button locks/unlocks every text box, and combobox. But how can I make it only lock/unlock specific text boxes/comboboxes?
Any help would be great.
Thnx
Private Sub Command61_Click()
If Command61.Caption = "UNLOCK RECORDS" Then
Me.AllowEdits = True
Command61.Caption = "LOCK RECORDS"
Me.Refresh
Else
Me.AllowEdits = False
Command61.Caption = "UNLOCK RECORDS"
Me.Refresh
End If
End Sub
Question: The command button locks/unlocks every text box, and combobox. But how can I make it only lock/unlock specific text boxes/comboboxes?
Any help would be great.
Thnx