Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
T2という名前のvb.netデータベースに接続されたアクセスデータベースがあり、テーブル3から列名Qtyinの合計を見つけて結果をテキストボックスに入れる必要がある3つのテーブルがあります。LINQを使用してみますが、何か問題があります:
Dim query = Aggregate Qtyin In T2DataSet.Table3 Into Sum() TextBox1.Text = query.ToString
構文ベースのクエリではなく、メソッド ベースのクエリはどうですか?
Dim sum = T2DataSet.Table3.Sum(Function(i) i.Qtyin) TextBox1.Text = sum