I have the following Event Procedures in a form:
Private Sub PrimaryDisability_Change()
Select Case Me.PrimaryDisability
Case "Other (Specify)"
PrimaryOther.Visible = True
Case Else
PrimaryOther.Visible = False
End Select
End Sub
Private Sub SecondaryDisabilityYN_Click()
Me.SecondaryDisability.Visible = Me.SecondaryDisabilityYN = True
Me.CauseofSecondary.Visible = Me.SecondaryDisability.Visible = True
End Sub
My problem is that when I go to a new record, the fields that I want hidden in the new record unless they meet the criteria are still visible. I have looked all over online and in books to determine the code I use or whatever I need to do to make the field invisible in the new record and only to appear in each record if it meets the criteria. Please help as I've spent a lot of time on researching this already! Thanks in advance for any help.
Private Sub PrimaryDisability_Change()
Select Case Me.PrimaryDisability
Case "Other (Specify)"
PrimaryOther.Visible = True
Case Else
PrimaryOther.Visible = False
End Select
End Sub
Private Sub SecondaryDisabilityYN_Click()
Me.SecondaryDisability.Visible = Me.SecondaryDisabilityYN = True
Me.CauseofSecondary.Visible = Me.SecondaryDisability.Visible = True
End Sub
My problem is that when I go to a new record, the fields that I want hidden in the new record unless they meet the criteria are still visible. I have looked all over online and in books to determine the code I use or whatever I need to do to make the field invisible in the new record and only to appear in each record if it meets the criteria. Please help as I've spent a lot of time on researching this already! Thanks in advance for any help.