I'm trying to specify that multiple conditional statements need to be met before saving. If either of the statements are not met, then their respective error messages will pop up. The problem I'm having is I cannot get the error messages to show independantly. Am I on the right track or where do I go from here?
If the event number or person boxes are not blank and event assoc2 box is not equal to stolen then
'call save
else if event number or person are blank
' error message
or if event assoc2 is equal to stolen and original value is blank then
' error message
If Not (EVENT_NUMBER.Text = "" Or person.Text = "") And EVENT_ASSOC2.Text <> "Stolen" Then
'Call CREATE_EXCEL_FILE(outputdirectory) to save
Else
End If
Elseif EVENT_ASSOC2.Text = "Stolen" And ORIGINAL_VALUE.Text = "" Then
MessageBox.Show("Property listed as stolen requires a value", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error)
Else
MessageBox.Show("Person and Event Number fields need to be completed", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Stop)
End If