Hello Everyone,
I am trying to write an IF statement that will break apart one drop down list by using the MID Function. Here is the code that I have:
The List23 box has 1454CNTABC so it should run the NetworkDate_Click sub, but instead it is not working. I am not sure what I am doing wrong and why it is not reading the list box value. Any help or suggestions would be greatly appreciated. Thanks!!
I am trying to write an IF statement that will break apart one drop down list by using the MID Function. Here is the code that I have:
Code:
If Mid(Me.List23, 5, 3) = "CNT" Then
NetworkDate_Click
ElseIf Mid(Me.List23, 5, 3) = "CNW" Then
NetworkDate_Click
ElseIf Mid(Me.List23, 5, 3) = "CNZ" Then
NetworkDate_Click
End If
The List23 box has 1454CNTABC so it should run the NetworkDate_Click sub, but instead it is not working. I am not sure what I am doing wrong and why it is not reading the list box value. Any help or suggestions would be greatly appreciated. Thanks!!