I am trying to look through each row in my data table and if a condition is not met, a messagebox appears. (Eventually, instead of the messagebox, I will populate to a DGV.
For Each eventRow As DataRow In PFC_Xpress.Tables("EVENT INFO").Rows
If eventRow.Item("Incident Type") = "Party" Then
For Each personRow As DataRow In PFC_Xpress.Tables("Person").Rows
If personRow.Item("Event Association") = "Birthday" Then
MessageBox.Show("my own message")
Else
MessageBox.Show("Form Validated")
End If
Next
End If
Next
When I go through debugging, the program only goes through the first 'For Each' and never passes through the rest of the script. Can anyone provide some help/insight?