Hi All Thanks in advance
I have a Main form on current event that checks a yes/no field and allows or disallows edits depending on the value. I have also subforms that do the same.
When I go to another record the main form works fine but the subforms allow edits no matter what the yes/no field value is on the main form.
I want to have the subforms AllowEdits property to False so it is in line with the main form.
Here is the code I have been using.
Code
-------------------------------------------------------------------------------------
If Me.txtLocked = -1 Then
Me.AllowEdits = False
Me.lblShiftClosed.Visible = True
Else
Me.AllowEdits = True
Me.lblShiftClosed.Visible = False
End If
Me.FsubShiftBar.Form.AllowEdits = False
I have a Main form on current event that checks a yes/no field and allows or disallows edits depending on the value. I have also subforms that do the same.
When I go to another record the main form works fine but the subforms allow edits no matter what the yes/no field value is on the main form.
I want to have the subforms AllowEdits property to False so it is in line with the main form.
Here is the code I have been using.
Code
-------------------------------------------------------------------------------------
If Me.txtLocked = -1 Then
Me.AllowEdits = False
Me.lblShiftClosed.Visible = True
Else
Me.AllowEdits = True
Me.lblShiftClosed.Visible = False
End If
Me.FsubShiftBar.Form.AllowEdits = False