2010-12-28 7 views
1

DataTable.Selectメソッドを使用して、1つの列に複数の値をフィルターする必要があります。DataTable.Select filter

Dim totalFatal As Integer = _ 
    m_DataSet.Tables("tblAccidentNonMotorist").Select(String.Format(_ 
    "[AccidentNumber] = '{0}' AND _ 
    CONTAINS([InjuryClass], '"01" OR "02" OR "03"'", accidentNumber)).Length 

フィルタにCONTAINSを使用できますか?

答えて

5

私はあなたが "[AccidentNumber] = '{0}' AND [InjuryClass] in('01' , '02' , '03')"

+0

はどうもありがとうございましほしいと思います! – Spidermain50