Dim num As Integer = 50
For Each bh As String In DataTables("表A").GetValues("编号")
Dim drs As List(Of DataRow) = DataTables("表A").Select("编号 = \'" & val(bh) & "\'", "日期 Desc")
If drs.Count > 1 Then
For i As Integer = 1 To drs.Count - 1
drs(i)("编号") = num
num += 1
Next
End If
Next