Hi All,
I have a combobox that depending on the user selection, I need a number to be assigned. I am trying to automate status changes of a production ticket. This is my code, but it doesn't work correctly:
Private Sub Combo38_AfterUpdate()
If Me.Combo38 = 4 Then
Me.TKTStatusID = 3
End If
If Me.Combo38 = 1 Or 2 Or 5 Or 6 Then
Me.TKTStatusID = 4
Else
Me.TKTStatusID = 2
End If
End Sub
Help, please! All selections return a "4". Urgh!
Heidi
I have a combobox that depending on the user selection, I need a number to be assigned. I am trying to automate status changes of a production ticket. This is my code, but it doesn't work correctly:
Private Sub Combo38_AfterUpdate()
If Me.Combo38 = 4 Then
Me.TKTStatusID = 3
End If
If Me.Combo38 = 1 Or 2 Or 5 Or 6 Then
Me.TKTStatusID = 4
Else
Me.TKTStatusID = 2
End If
End Sub
Help, please! All selections return a "4". Urgh!
Heidi