hello,
i have a combo box with a list of drop down values in it. also i have a add button. if the user chooses something from the combo box and clicks on add then it gets added to another list box.
however my problem is that when the form opens the first time and the user directly clicks on the add without choosing soemthign from the combo box then a message should be displyed saying "to choose item first".
i tried the follow code but without luck
If me!cboItem.Value = Null Then
MsgBox "Please Select an item first"
Exit Sub
End If
can soemone help me with this.
i have a combo box with a list of drop down values in it. also i have a add button. if the user chooses something from the combo box and clicks on add then it gets added to another list box.
however my problem is that when the form opens the first time and the user directly clicks on the add without choosing soemthign from the combo box then a message should be displyed saying "to choose item first".
i tried the follow code but without luck
If me!cboItem.Value = Null Then
MsgBox "Please Select an item first"
Exit Sub
End If
can soemone help me with this.