Hi!
Is there any reason why this switch is working only once? I'm loading form with AllowEdits=false and want to switch it later as much as I need. It is switching it to AllowEdits=true just once and it is not switching it back to false. Here is the code:
Private Sub CMD_EDIT_Click()
If Me.AllowEdits = True Then
Me.CMD_EDIT.Caption = "Edit"
Me.AllowAdditions = False
Me.AllowEdits = False
Else
Me.AllowAdditions = True
Me.AllowEdits = True
Me.CMD_EDIT.Caption = "Save"
End If
End Sub
Andrew
Is there any reason why this switch is working only once? I'm loading form with AllowEdits=false and want to switch it later as much as I need. It is switching it to AllowEdits=true just once and it is not switching it back to false. Here is the code:
Private Sub CMD_EDIT_Click()
If Me.AllowEdits = True Then
Me.CMD_EDIT.Caption = "Edit"
Me.AllowAdditions = False
Me.AllowEdits = False
Else
Me.AllowAdditions = True
Me.AllowEdits = True
Me.CMD_EDIT.Caption = "Save"
End If
End Sub
Andrew