I have a form with a combo box. When a command button is hit, the value of this combo box is displayed on a label. I've placed the following error-check in the code for the command button click to make sure a value is selected in the combo box.
When nothing is selected in the combo box though the error checking doesn't work! Even in debug I mouse over cmbJob.Value and it equals Null yet it skips the If statement! What gives???
Code:
If cmbJob.Value = Null Then
MsgBox "No job selected.", vbCritical
End
End If
When nothing is selected in the combo box though the error checking doesn't work! Even in debug I mouse over cmbJob.Value and it equals Null yet it skips the If statement! What gives???