Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
你的代码,前两行是针对当前选定行的,而第三行是针对是否转移为True的行,前后不匹配。
Dim drs As List(Of DataRow) = DataTables("员工档案").Select("[是否转移] = True")
For Each dr As DataRow In drs
DataTables("个人简历").DeleteFor("[工号] = '" & dr.Current("工号") & "'")
DataTables("家庭成员").DeleteFor("[工号] = '" & dr.Current("工号") & "'")
dr.Delete()
Next
Dim
dr As DataRow = DataTables("产品").DataRows(0)