Error code for combo box

  • Thread starter Thread starter Gary Hull
  • Start date Start date
G

Gary Hull

I have no experience in writing error code.

I have a Combo box that requires data be entered into it.

I need error code that when the combo has no data entered into it will
bring up a message box that will warn the user that there is not data in
the combo box and will then take them back to the Combo box so they can add
data. I know that access has a default Message box, but it doesn’t make
since to my users
 
Use the Before Update event of the Comb box:

If Len(Me.MyComboBox & "") = 0 Then
MsgBox "No Data In Combo"
Cancel = True
End If
 
Back
Top