DataTables("客户信息").DataRows.clear For Each kh As String In DataTables("客户订单").GetValues("客户") Dim str As String = DataTables("客户订单").GetComboListString("订单号", "客户 = '" & kh & "'") If str > "" Then Dim ndr As DataRow = DataTables("客户信息").AddNew ndr("订单号") = str.Split("|")(0) ndr("客户") = kh ndr("备注") = str.replace("|", "/") End If Next