[RESOLVED] Check for ComboBox selection code?
I'm a bit lost for what I put in place of the ? in this code. I want to check if combobox1 selection has been made but combobox2 has no selection then to bring up message.
Code:
If Me.cmbReason.Value = ? And Me.cmbDes.Value = "" Then
Me.cmbDes.SetFocus
MsgBox "Please enter Description"
Exit Sub
End If
:rolleyes:
Re: Check for ComboBox selection code?
VB Code:
If Me.cmbReason.Value <> "" And Me.cmbDes.Value = "" Then
Me.cmbDes.SetFocus
MsgBox "Please enter Description"
Exit Sub
End If
Re: Check for ComboBox selection code?
Simple, makes me feel so stupid. Thanks