生产通知单增加一行,明细表1和明细表2增加八行,现在要对这八行进行操作,如果明细表1支数列为空则删除,不为空则保存,以下代码错在哪里Dim t1 As Table=Tables("生产通知单明细1") Dim t2 As Table =Tables("生产通知单明细2") For i As Integer = Tables("生产通知单明细1").Rows.count-8 To Tables("生产通知单明细1").Rows.count-1 Dim dr1 As Row = t1.Rows(i) Dim dr2 As Row =t2.Rows(i) If dr1("支数") IsNot Nothing Then dr1.save() dr2.save() Else dr1.delete() dr2.delete() End If Next