このコードを使用すると、「SelectCommand」は StudentsTableAdapter のメンバーではないというエラーが表示されます。
Dim cmd As New SqlCommand("SELECT * FROM Students WHERE ID=@ID", myConnection)
cmd.Parameters.AddWithValue("@ID", 5)
Me.StudentsTableAdapter.SelectCommand = cmd
Me.StudentsTableAdapter.Fill(Me.StudentsDataSet.Students)
接続オブジェクトは次のとおりです。
Dim ObjConnection As New SqlConnection(My.Settings.SelimiyeMasjidConnectionString)
SelectCommand をテーブル アダプターのメンバーにする方法を教えてください。