J
jhicsupt
I have the event in "On Exit". However I want to add if Me.ColorStatus is
null, then [Forms]![Top 10].NGTColor is null. In other words, if user clears
Me.ColorStatus, then [Forms]![Top 10].NGTColor should also be clear.
Thanks in advance.
Private Sub ColorStatus_Exit(Cancel As Integer)
If Me.ColorStatus Like "Green" And Me.PRoduct Like "NGT*" Then
[Forms]![Top 10].NGTColor = "Green"
End If
If Me.ColorStatus Like "Yellow" And Me.PRoduct Like "NGT*" Then
[Forms]![Top 10].NGTColor = "Yellow"
End If
If Me.ColorStatus Like "Red" And Me.PRoduct Like "NGT*" Then
[Forms]![Top 10].NGTColor = "Red"
End If
End Sub
null, then [Forms]![Top 10].NGTColor is null. In other words, if user clears
Me.ColorStatus, then [Forms]![Top 10].NGTColor should also be clear.
Thanks in advance.
Private Sub ColorStatus_Exit(Cancel As Integer)
If Me.ColorStatus Like "Green" And Me.PRoduct Like "NGT*" Then
[Forms]![Top 10].NGTColor = "Green"
End If
If Me.ColorStatus Like "Yellow" And Me.PRoduct Like "NGT*" Then
[Forms]![Top 10].NGTColor = "Yellow"
End If
If Me.ColorStatus Like "Red" And Me.PRoduct Like "NGT*" Then
[Forms]![Top 10].NGTColor = "Red"
End If
End Sub