Why don't both of these pieces of code work, when I enter No into the combo box? :banghead:
This code works.
This code doesn't work.
Any help is greatly appreciated. Thanks.
This code works.
Code:
If Me.ComboBillable = "Yes" Or Me.ComboBillable = "No" Then
Else
MsgBox "You must choose an Appropriate Billing Option"
Me.ComboBillable.BorderColor = RGB(255, 0, 0)
Me.ComboBillable.SetFocus
Exit Sub
End If
This code doesn't work.
Code:
If Not Me.ComboBillable = "Yes" Or Me.ComboBillable = "No" Then
MsgBox "You must choose an Appropriate Billing Option"
Me.ComboBillable.BorderColor = RGB(255, 0, 0)
Me.ComboBillable.SetFocus
Exit Sub
End If
Any help is greatly appreciated. Thanks.