I have a database for dairy farm records. It has a form where I have details of cows and picture of them. One the form I have field [GENDER]. I want that when i select [MALE] from this field [Gender]. It should disable other fields on the form. and when i select [FEMALE]. It should enable other fields on the form. Form should open with fields disable if selection is [MALE] and enabled if selection is [FEMALE].
Private Sub Gender AfterUpdate ()
If Gender.Value = "Male" Then
CalvingStatus.Enabled = False
MilkDay.Enabled = False
Else if Gender.Value = "Female" Then
CalvingStatus.Enabled = True
MilkDay.Enabled = True
Else
CalvingStatus.Enabled = False
MilkDay.Enabled = False
End if
End Sub