'自动更新JIP612任务单的含零件数
Dim pr As DataRow
msgbox(e.DataRow("产品代号"))
msgbox(e.DataRow("零件代号"))
pr = DataTables("JPK612任务单").Find("类型一 = '" & e.DataRow("产品代号") & "'")
If pr IsNot Nothing Then
msgbox("找到")
DataTables("JPK612任务单").DataCols("类型一").RaiseDataColChanged(pr)
Else
msgbox("没找到")
End If
改为
DataTables("JPK612任务单").DataCols("类型一").RaiseDataColChanged("类型一 = '" & e.DataRow("产品代号") & "'")