I have two combo boxes on my form, let's say box1(s1_individ ual_session) and box2(s1_nationa lity1), initially I disable box2(gray-out). I want to select box1 value is "true" then enable the box2,
the code:
Private Sub s1_individual_s ession_AfterUpd ate()
If Me.s1_individua l_session.Value = True Then
Me.s1_nationali ty1.Enabled = True
Else
Me.s1_nationali ty1.Enabled = False
End If
End Sub
but it gave me compile error:Method or data member not found, I don't know what caused the problem, I started my current project without any knowledge of Access programming. thanks.
the code:
Private Sub s1_individual_s ession_AfterUpd ate()
If Me.s1_individua l_session.Value = True Then
Me.s1_nationali ty1.Enabled = True
Else
Me.s1_nationali ty1.Enabled = False
End If
End Sub
but it gave me compile error:Method or data member not found, I don't know what caused the problem, I started my current project without any knowledge of Access programming. thanks.
Comment