Making a field housed within a combo box mandatory

Milo320

New member
Local time
Today, 13:38
Joined
Jan 29, 2013
Messages
1
I have created a combo box in a form. I want to make it so that neither value that I entered into a Row Source populates automatically, but rather the user has to go to the box and select either a yes or no from the drop down. How do I make that combo box mandatory?
 
In the form's Before Update event put the following code;
Code:
If IsNull(Me.YourCombo) Then
     MsgBox "Please make a selection from the list"
     Me.YourCombo.SetFocus
     Me.YourCombo.DropDown
     Cancel = True
     Exit Sub
End If
 
... and welcome to the forum :D
 
the property -> Data -> there are two properties: Limit to List (Yes), and AllowValue List Edit( No )
 

Users who are viewing this thread

Back
Top Bottom