SgtSaunders69
New member
- Local time
- Yesterday, 16:04
- Joined
- Dec 27, 2011
- Messages
- 6
I want to set the properties of 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!
Usinig MSAccess 2010
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!
Usinig MSAccess 2010