I have a form with one combobox and several check boxes. When a user selects a certain value on the combobox, i would like for a messagebox to display if the user does not mark one or more of the check boxes. Here's my attempt but it still saved the record without displaying a messagebox. Thanks in advance for the help.
cboStat.SetFocus
If cboStat.Text = "" Then
MsgBox "Please select a status.", vbInformation
Exit Sub
ElseIf cboStat.Text = "Type X" Then
If AFL = False And BFL = False And CFL = False And DFL= False And EFL= False And FFL = False Then
MsgBox "Please select one or more checkboxes.", vbInformation
Me.cboStatus = ""
Exit Sub
End If