增加行之前判断一下:
Dim dr As DataRowdr = DataTables("数据汇总").Find("日期 = #" & Forms("数据填报").Controls("TextBox10").text & _ "# And 单位 = '" & Forms("数据填报").Controls("TextBox11").text & "'")
If dr Is Nothing
··· addnew()
··········
End If