Dim idxs As String = "-1," For Each r As Row In Tables("合同打印_table1").Rows If r("配送公司名称") = Forms("合同打印").Controls("TextBox2").text Then r.Checked = True idxs &= r("_Identify") & "," End If Next Tables("合同打印_table1").Filter = "_Identify in (" & idxs.trim(",") & ")"