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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top