HI I HAVE MS ACCESS TABLE COLUMNS SEX (MALE FEMALE) CLASS (6,7,8,9,10,11,12) I WANT TO COUNT HOW MANY MALES IN CLASS 6 AND HOW MANY GRILS IN 6.AND I WANT COUNT EACH CLASS. I AM TRYED BY THIS CODE BUT ITS NOT WORKING
Dim Y As Integer = 9
Dim x As Integer = 10
Label13.Text = (From Rows In STUDENT_REPORTDataGridView.Rows.Cast(Of DataGridViewRow)() Where Not Rows.IsNewRow AndAlso Rows.Cells(x).Value.ToString = "6" & Rows.IsNewRow AndAlso Rows.Cells(Y).Value.ToString = "MALE").Count