mark 筛选重复
Dim idx As String = ""
Dim idx_temp As String = ""
Dim pdr As DataRow = Nothing
Dim count As Integer = 0
For Each dr As DataRow In DataTables("表A").Select("日期时间 is not null", "姓名,日期时间")
output.show(dr("姓名") & dr("日期时间"))
If pdr IsNot Nothing AndAlso (pdr("日期时间").Date <> dr("日期时间").Date OrElse pdr("姓名") <> dr("姓名")) Then
output.show(count)
If count > 2 Then
idx &= idx_temp
End If
count = 1
idx_temp = ""
Else
count += 1
End If
idx_temp &= dr("_Identify") & ","
pdr = dr
Next
If count > 2 Then
idx &= idx_temp
End If
Tables("表A").filter = "_Identify in (" & idx.trim(",") & ")"