I want to Delete data from two gridviews(Using Foreign Key) when i click a button!..This is What I've tried and gives me an error "Incorrect Syntax near "INNER""..Help Me figure this out..
Private Sub Button1_Click(Byval.....
Dim command as new SqlCommand("Delete From Students Inner Join Classes ON Students.StudentID=Classes.StudentID Where Students.StudentID='" & Registered.CurrentRow.Cells(1).Value & "'",connection)