I have a dataset setup by using the Visual Studio wizard and in the form is this line of code:
Me.StudentsTableAdapter.Fill(Me.StudentsDataSet.Students)
The select statement for the table adapter is:
SELECT ID, Forename, Surname, AddressLine1, AddressLine2, City, State, PostCode,
PrimaryPhone, SecondaryPhone, DateOfBirth, email, Grade, GPA, ParentID
FROM Students
Can you tell me how to add a Where clause using coding on this table adapter?
You can try using an SQLCommand object, something like this: