I want to enable and disable various combinations of text boxes based on what the user selects in a combo pulldown box. The code I have will only make the changes in the first section for the first report listed "All currently open work requests". ... After that nothing runs... no errors.. just doesn't do anything.
Private Sub Combo21_AfterUpdate()
If Forms![FRMrpt1]!Combo21! = "All currently open work requests" Then
Forms![FRMrpt1]!Combo19.Enabled = no
Forms![FRMrpt1]!Combo26.Enabled = no
Forms![FRMrpt1]!Combo28.Enabled = no
Else
Forms![FRMrpt1]!Combo19.Enabled = yes
Forms![FRMrpt1]!Combo26.Enabled = yes
Forms![FRMrpt1]!Combo28.Enabled = yes
End If
If Forms![FRMrpt1]!Combo21! = "All Excalated work requests - Closed" Then
Forms![FRMrpt1]!Combo19.Enabled = yes
Forms![FRMrpt1]!Combo26.Enabled = yes
Forms![FRMrpt1]!Combo28.Enabled = no
Else
Forms![FRMrpt1]!Combo19.Enabled = no
Forms![FRMrpt1]!Combo26.Enabled = no
Forms![FRMrpt1]!Combo28.Enabled = no
End If
End Sub
Any thoughts would be appreciated!