H
HelloWorld
I have a single combo box with the following Values Coach Operator, Coach
Technician, Administrative Assistant, Director of Something Or Another (Stil
in Testing Phase) and I would like to set the enable/disable property for a
few other controls on the form - the code I have in place is
###################################################
Private Sub Title_AfterUpdate()
If Me.Title = "Coach Operator" Then
Me.Conviction_DUI.Enabled = True
Me.Conviction_DUI__Date.Enabled = True
Me.Conviction_DUI_Explain.Enabled = True
Me.Work_History.Enabled = True
Else
Me.Conviction_DUI.Enabled = False
Me.Conviction_DUI__Date.Enabled = False
Me.Conviction_DUI_Explain.Enabled = False
Me.Work_History.Enabled = False
End If
End Sub
The controls seem to be disbaling fine but they are ignoring the "coach
operator" criteria and are disabling any time the Title field is updated
-regardless of the value.
Technician, Administrative Assistant, Director of Something Or Another (Stil
in Testing Phase) and I would like to set the enable/disable property for a
few other controls on the form - the code I have in place is
###################################################
Private Sub Title_AfterUpdate()
If Me.Title = "Coach Operator" Then
Me.Conviction_DUI.Enabled = True
Me.Conviction_DUI__Date.Enabled = True
Me.Conviction_DUI_Explain.Enabled = True
Me.Work_History.Enabled = True
Else
Me.Conviction_DUI.Enabled = False
Me.Conviction_DUI__Date.Enabled = False
Me.Conviction_DUI_Explain.Enabled = False
Me.Work_History.Enabled = False
End If
End Sub
The controls seem to be disbaling fine but they are ignoring the "coach
operator" criteria and are disabling any time the Title field is updated
-regardless of the value.